//public GTModuleListenerControl()
 //{
 //    mGlobalEventManager = GlobalEventManager.GetSingleton();
 //    mNetMsgEventManager = NetWorkEventManager.GetSingleton();
 //}
 public GTModuleListenerControl(GTModel varModel)
 {
     mModel = varModel;
     if (varModel != null)
     {
         varModel.AddListener(this);
     }
     mGlobalMsgQueue     = new EventHandlerQueue(CrossContextEventProcessor.GetInstance());
     mNetMsgQueue        = new EventHandlerQueue(NetworkEventProcessor.GetInstance());
     mGlobalEventManager = CrossContextEventProcessor.GetInstance();
     mNetMsgEventManager = NetworkEventProcessor.GetInstance();
 }
Ejemplo n.º 2
0
 public void Initialize()
 {
     mGlobalMsgQueue = new EventHandlerQueue(CrossContextEventProcessor.GetInstance());
     mGlobalMsgQueue.Add((int)CrossContextEventType.GE_LevelWasLoaded, OnLevelLoaded);
     ReadGameSettingConfig();
 }