// AddMessage public void AddMessage( int type, int data ) { if ( MessageCount == _UI.Settings.Screen_MessageCount ) return; MessagePool[ MessageCount++ ] = new ScreenMessage( type, data ); }
// OnProcessMessage protected override void OnProcessMessage(ref ScreenMessage message) { E_UiMessageType type = (E_UiMessageType)message.Type; if (type == E_UiMessageType.PopupConfirm) { switch ((E_PopupType)message.Data) { case E_PopupType.NewGame: break; case E_PopupType.Quit: _UI.Game.Exit(); break; } } }
// ProcessMessage public void ProcessMessage( ref ScreenMessage message ) { OnProcessMessage( ref message ); }
// OnProcessMessage protected virtual void OnProcessMessage( ref ScreenMessage message ) { // }
// ProcessMessage public void ProcessMessage( ref ScreenMessage message ) { if ( State != E_ScreenState.Update ) return; CurrentScreen.ProcessMessage( ref message ); }
// OnProcessMessage protected virtual void OnProcessMessage(ref ScreenMessage message) { // }
// ProcessMessage public void ProcessMessage(ref ScreenMessage message) { OnProcessMessage(ref message); }