コード例 #1
0
 public void Dispatch(T sender, SkillBridge.Message.NetMessageResponse message)
 {
     if (message.userRegister != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.userRegister);
     }
     if (message.userLogin != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.userLogin);
     }
     if (message.createChar != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.createChar);
     }
     if (message.gameEnter != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.gameEnter);
     }
     if (message.gameLeave != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.gameLeave);
     }
     if (message.mapCharacterEnter != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.mapCharacterEnter);
     }
     if (message.mapCharacterLeave != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.mapCharacterLeave);
     }
     if (message.mapEntitySync != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.mapEntitySync);
     }
 }
コード例 #2
0
ファイル: MessageDispatch.cs プロジェクト: 1725038230/mmo
 public void Dispatch(T sender, SkillBridge.Message.NetMessageResponse message)
 {
     if (message.userRegister != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.userRegister);
     }
     if (message.userLogin != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.userLogin);
     }
     if (message.createChar != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.createChar);
     }
     if (message.gameEnter != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.gameEnter);
     }
     if (message.gameLeave != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.gameLeave);
     }
     if (message.mapCharacterEnter != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.mapCharacterEnter);
     }
     if (message.mapCharacterLeave != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.mapCharacterLeave);
     }
     if (message.mapEntitySync != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.mapEntitySync);
     }
     if (message.itemBuy != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.itemBuy);
     }
     if (message.statusNotify != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.statusNotify);
     }
     if (message.itemEquip != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.itemEquip);
     }
     if (message.questAccept != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.questAccept);
     }
     if (message.questSubmit != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.questSubmit);
     }
 }
コード例 #3
0
 public void Dispatch(T sender, SkillBridge.Message.NetMessageResponse message)
 {
     if (message.userRegister != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.userRegister);
     }
     if (message.userLogin != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.userLogin);
     }
     if (message.createChar != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.createChar);
     }
     if (message.gameEnter != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.gameEnter);
     }
     if (message.gameLeave != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.gameLeave);
     }
     if (message.mapCharacterEnter != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.mapCharacterEnter);
     }
     if (message.mapCharacterLeave != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.mapCharacterLeave);
     }
     if (message.mapEntitySync != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.mapEntitySync);
     }
     if (message.statusNotify != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.statusNotify);
     }
     if (message.itemBuy != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.itemBuy);
     }
     if (message.itemEquip != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.itemEquip);
     }
     if (message.questAccept != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.questAccept);
     }
     if (message.questSubmit != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.questSubmit);
     }
     if (message.friendAddReq != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.friendAddReq);
     }
     if (message.friendAddRes != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.friendAddRes);
     }
     if (message.friendList != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.friendList);
     }
     if (message.friendRemove != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.friendRemove);
     }
     if (message.teamInviteReq != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.teamInviteReq);
     }
     if (message.teamInviteRes != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.teamInviteRes);
     }
     if (message.teamInfo != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.teamInfo);
     }
     if (message.teamLeave != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.teamLeave);
     }
     if (message.guildCreate != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.guildCreate);
     }
     if (message.guildJoinReq != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.guildJoinReq);
     }
     if (message.guildJoinRes != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.guildJoinRes);
     }
     if (message.Guild != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.Guild);
     }
     if (message.guildLeave != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.guildLeave);
     }
     if (message.guildList != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.guildList);
     }
     if (message.guildAdmin != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.guildAdmin);
     }
     if (message.Chat != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.Chat);
     }
     if (message.skillCast != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.skillCast);
     }
     if (message.skillHits != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.skillHits);
     }
     if (message.buffRes != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.buffRes);
     }
 }
コード例 #4
0
 public void Dispatch(T sender, SkillBridge.Message.NetMessageResponse message)
 {
     if (message.userRegister != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.userRegister);
     }
     if (message.userLogin != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.userLogin);
     }
     if (message.createChar != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.createChar);
     }
     if (message.gameEnter != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.gameEnter);
     }
     if (message.gameLeave != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.gameLeave);
     }
     if (message.mapCharacterEnter != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.mapCharacterEnter);
     }
     if (message.mapCharacterLeave != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.mapCharacterLeave);
     }
     if (message.mapEntitySync != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.mapEntitySync);
     }
     if (message.itemBuyResponse != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.itemBuyResponse);
     }
     if (message.itemSellResponse != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.itemSellResponse);
     }
     if (message.statusNotify != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.statusNotify);
     }
     if (message.equipResponse != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.equipResponse);
     }
     if (message.questAcceptResponse != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.questAcceptResponse);
     }
     if (message.questListResponse != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.questListResponse);
     }
     if (message.questSubmitResponse != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.questSubmitResponse);
     }
     if (message.messageReplyResponse != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.messageReplyResponse);
     }
     if (message.messageListResponse != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.messageListResponse);
     }
     if (message.messageSendResponse != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.messageSendResponse);
     }
     if (message.messageTargetInfoResponse != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.messageTargetInfoResponse);
     }
     if (message.friendAdd != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.friendAdd);
     }
     if (message.friendList != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.friendList);
     }
     if (message.friendRemove != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.friendRemove);
     }
     if (message.messageReceive != null)
     {
         MessageDistributer <T> .Instance.RaiseEvent(sender, message.messageReceive);
     }
 }