public MessageDispatcher() { m_MsgCallList = new RegisterDictionaryTemplate <MessageObject>(); m_MsgList = new MessageQueue(); m_AllMessageListenerList = new RegisterListTemplate <MessageObject>(); m_MsgList.Initialize(); // test code -- add Update() to update list }
public void Initialize() { m_BeginCdStore = new Dictionary <int, SkillCd>(); m_CdStore = new Dictionary <int, SkillCd>(); m_RemoveingCdStore = new List <int>(); m_RemoveingBeginCdStore = new List <int>(); SkillCdTickTask.Instance.RegisterToUpdateList(Update); m_ListenerList = new RegisterDictionaryTemplate <int>(); m_BeginCdListenerList = new RegisterDictionaryTemplate <int>(); m_PlayingSkill = new Dictionary <int, SkillConfig>(); m_LockedTargetList = new Dictionary <int, Ilife>(); MessageDispatcher.Instance.RegistMessage(ClientCustomMessageDefine.C_ACTION_FININSH, OnActionFinished); }
public void Initialize() { m_BeginCdStore = new Dictionary<int, SkillCd>(); m_CdStore = new Dictionary<int, SkillCd>(); m_RemoveingCdStore = new List<int>(); m_RemoveingBeginCdStore = new List<int>(); SkillCdTickTask.Instance.RegisterToUpdateList(Update); m_ListenerList = new RegisterDictionaryTemplate<int>(); m_BeginCdListenerList = new RegisterDictionaryTemplate<int>(); m_PlayingSkill = new Dictionary<int, SkillConfig>(); m_LockedTargetList = new Dictionary<int, Ilife>(); MessageDispatcher.Instance.RegistMessage(ClientCustomMessageDefine.C_ACTION_FININSH, OnActionFinished); }
public void Destructor() { MessageDispatcher.Instance.UnregistMessage(ClientCustomMessageDefine.C_ACTION_FININSH, OnActionFinished); SkillCdTickTask.Instance.UnRegisterFromUpdateList(Update); m_ListenerList = null; }