Exemplo n.º 1
0
    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
    }
Exemplo n.º 2
0
    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);
    }
Exemplo n.º 3
0
    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);
    }
Exemplo n.º 4
0
 public void Destructor()
 {
     MessageDispatcher.Instance.UnregistMessage(ClientCustomMessageDefine.C_ACTION_FININSH, OnActionFinished);
     SkillCdTickTask.Instance.UnRegisterFromUpdateList(Update);
     m_ListenerList = null;
 }
Exemplo n.º 5
0
 public void Destructor()
 {
     MessageDispatcher.Instance.UnregistMessage(ClientCustomMessageDefine.C_ACTION_FININSH, OnActionFinished);
     SkillCdTickTask.Instance.UnRegisterFromUpdateList(Update);
     m_ListenerList = null;
 }