public void UnRegisterReceiver() { #region Event EventDispatch.UnRegisterReceiver <int>(EventID.Ready_Request, OnReadyRequest); EventDispatch.UnRegisterReceiver <EventConnect>(EventID.Connect_Request, OnConnectRequest); EventDispatch.UnRegisterReceiver <Command>(EventID.AddCommand, OnAddCommand); #endregion #region Message MessageDispatch.UnRegisterReceiver <GM_Accept>(MessageID.GM_ACCEPT_SC, OnAccept); MessageDispatch.UnRegisterReceiver <GM_Connect>(MessageID.GM_CONNECT_SC, OnConnectReturn); MessageDispatch.UnRegisterReceiver <GM_Connect>(MessageID.GM_CONNECT_BC, OnConnectBC); MessageDispatch.UnRegisterReceiver <GM_Disconnect>(MessageID.GM_DISCONNECT_BC, OnDisconnectBC); MessageDispatch.UnRegisterReceiver <GM_Ready>(MessageID.GM_READY_BC, OnReadyBC); MessageDispatch.UnRegisterReceiver <GM_Begin>(MessageID.GM_BEGIN_BC, OnBeginBC); MessageDispatch.UnRegisterReceiver <GM_Frame_BC>(MessageID.GM_FRAME_BC, OnFrameBC); MessageDispatch.UnRegisterReceiver <GM_Return>(MessageID.GM_PING_SC, OnPingReturn); #endregion #region Command CommandDispatch.UnRegisterReceiver <CMD_ReleaseSkill>(CommandID.RELEASE_SKILL, OnCommandReleaseSkill); CommandDispatch.UnRegisterReceiver <CMD_MoveToPoint>(CommandID.MOVE_TO_POINT, OnCommandMoveToPoint); CommandDispatch.UnRegisterReceiver <CMD_CreateMonster>(CommandID.CREATE_MONSTER, OnCreateMonster); #endregion }
public void UnRegisterReceiver() { EventDispatch.UnRegisterReceiver <int>(EventID.Connect_Return, OnConnectReturn); EventDispatch.UnRegisterReceiver <int>(EventID.Ready_Broadcast, OnReadyBC); EventDispatch.UnRegisterReceiver <bool>(EventID.Begin_Broadcast, OnBeginBC); EventDispatch.UnRegisterReceiver <EventPlayerCreate>(EventID.Player_Create, OnPlayerCreate); EventDispatch.UnRegisterReceiver <EventPlayerMove>(EventID.Player_Move, OnPlayerMove); EventDispatch.UnRegisterReceiver <EventPlayerRemove>(EventID.Player_Remove, OnPlayerRemove); EventDispatch.UnRegisterReceiver <EventPlayerBloodChange>(EventID.Player_BloodChange, OnPlayerBloodChange); EventDispatch.UnRegisterReceiver <long>(EventID.Frame_Broadcast, OnFrameBC); EventDispatch.UnRegisterReceiver <int>(EventID.Ping_Broadcast, OnPing); }