pub type StateHandler = unsafe extern "C" fn(app: &GameApp);
A callback function to be called when a state is entered, updated, or exited.