protected override void OnGetMsg(MobaMessage msg) { base.DebugMessage = ((base.LastError != 0) ? "===>邮件列表获取失败" : "===>邮件列表获取成功"); if (msg != null) { OperationResponse operationResponse = msg.Param as OperationResponse; if (operationResponse != null) { switch (MVC_MessageManager.NotifyModel_to_Game((ClientMsg)msg.ID)) { case MobaGameCode.ReceiveMailAttachment: this.OnGetMsg_ReceiveMailAttachment(operationResponse); base.LastMsgType = 80; break; case MobaGameCode.GetMailList: this.OnGetMsg_MailList(operationResponse); base.LastMsgType = 81; break; case MobaGameCode.ModifyEmailState: this.OnGetMsg_ModifyEmailState(operationResponse); base.LastMsgType = 83; break; } } } base.Valid = (base.LastError == 0 && null != base.Data); base.TriggerListners(); }
protected override void OnGetMsg(MobaMessage msg) { base.LastError = 505; OperationResponse operationResponse = msg.Param as OperationResponse; if (operationResponse != null) { MobaGameCode mobaGameCode = MVC_MessageManager.NotifyModel_to_Game((ClientMsg)msg.ID); MobaGameCode mobaGameCode2 = mobaGameCode; if (mobaGameCode2 != MobaGameCode.BuyShopGoodsNew) { if (mobaGameCode2 != MobaGameCode.SignDay) { if (mobaGameCode2 == MobaGameCode.GetSummSkinList) { this.OnGetMsg_GetSummSkinList(operationResponse); } } else { this.OnGetMsg_SignDay(operationResponse); } } else { this.OnGetMsg_BuyShopGoodsNew(operationResponse); } } }
protected override void OnGetMsg(MobaMessage msg) { base.DebugMessage = ((base.LastError != 0) ? "===>成就系统信息获取失败" : "===>成就系统信息获取成功"); if (msg != null) { OperationResponse operationResponse = msg.Param as OperationResponse; if (operationResponse != null) { MobaGameCode mobaGameCode = MVC_MessageManager.NotifyModel_to_Game((ClientMsg)msg.ID); base.LastMsgType = (int)mobaGameCode; MobaGameCode mobaGameCode2 = mobaGameCode; switch (mobaGameCode2) { case MobaGameCode.GetTotalRecord: this.GetKdaData(operationResponse); break; case MobaGameCode.GetHistoryRecord: this.GetHistoryData(operationResponse); break; case MobaGameCode.GetHomeTotalRecord: this.GetHomeKDAData(operationResponse); break; case MobaGameCode.GetHeroRecordInfo: this.GetOnePageBattleData(operationResponse); break; default: if (mobaGameCode2 != MobaGameCode.GetKdaMyHeroData) { if (mobaGameCode2 != MobaGameCode.GetMyFightAbility) { if (mobaGameCode2 == MobaGameCode.GetUserHonorPic) { this.GetMyHonorData(operationResponse); } } else { this.GetMyAbilityData(operationResponse); } } else { this.GetAchievementData(operationResponse); } break; } } } base.TriggerListners(); }
protected override void OnGetMsg(MobaMessage msg) { base.LastError = 505; OperationResponse operationResponse = msg.Param as OperationResponse; if (operationResponse != null) { MobaGameCode mobaGameCode = MVC_MessageManager.NotifyModel_to_Game((ClientMsg)msg.ID); MobaGameCode mobaGameCode2 = mobaGameCode; switch (mobaGameCode2) { case MobaGameCode.ShowDailyTask: this.OnGetMsg_GetTaskList(operationResponse); goto IL_9E; case MobaGameCode.GetAchieveTaskAward: this.OnGetMsg_GetReward(operationResponse); goto IL_9E; case MobaGameCode.GetFriendGameServer: case MobaGameCode.GetGameServer: IL_48: switch (mobaGameCode2) { case MobaGameCode.GetTaskList: this.OnGetMsg_GetTaskList(operationResponse); goto IL_9E; case MobaGameCode.CompleteTask: goto IL_9E; case MobaGameCode.CompleteTaskMessage: this.OnGetMsg_CompleteTaskMessage(operationResponse); goto IL_9E; default: goto IL_9E; } break; case MobaGameCode.GetDailyTaskAward: this.OnGetMsg_GetReward(operationResponse); goto IL_9E; } goto IL_48; } IL_9E: base.TriggerListners(); }
protected override void OnGetMsg(MobaMessage msg) { MobaGameCode mobaGameCode = MVC_MessageManager.NotifyModel_to_Game((ClientMsg)msg.ID); MobaGameCode mobaGameCode2 = mobaGameCode; if (mobaGameCode2 != MobaGameCode.Login) { if (mobaGameCode2 == MobaGameCode.ClientReportOnlineTime) { this.OnCorrect(msg); } } else { this.OnLogin(msg); } base.TriggerListners(); }
protected override void OnGetMsg(MobaMessage msg) { if (msg != null) { OperationResponse operationResponse = msg.Param as OperationResponse; if (operationResponse != null) { MobaGameCode mobaGameCode = MVC_MessageManager.NotifyModel_to_Game((ClientMsg)msg.ID); base.LastMsgType = (int)mobaGameCode; MobaGameCode mobaGameCode2 = mobaGameCode; if (mobaGameCode2 == MobaGameCode.GetSignDay) { this.OnGetMsg_GetSignDay(operationResponse); } } } base.TriggerListners(); }
protected override void OnGetMsg(MobaMessage msg) { base.DebugMessage = ((base.LastError != 0) ? "===>小魔瓶信息获取失败" : "===>小魔瓶信息取成功"); if (msg != null) { OperationResponse operationResponse = msg.Param as OperationResponse; if (operationResponse != null) { MobaGameCode mobaGameCode = MVC_MessageManager.NotifyModel_to_Game((ClientMsg)msg.ID); base.LastMsgType = (int)mobaGameCode; MobaGameCode mobaGameCode2 = mobaGameCode; if (mobaGameCode2 == MobaGameCode.GetMagicBottleRankList) { this.GetMagicBottleRankList(operationResponse); } } } base.TriggerListners(); }
protected override void OnGetMsg(MobaMessage msg) { base.LastError = 505; OperationResponse operationResponse = msg.Param as OperationResponse; if (operationResponse != null) { switch (MVC_MessageManager.NotifyModel_to_Game((ClientMsg)msg.ID)) { case MobaGameCode.GetShopVersion: this.OnGetMsg_GetShopVersion(operationResponse); break; case MobaGameCode.GetShopNew: this.OnGetMsg_GetShopNew(operationResponse); break; } } base.TriggerListners(); }
protected override void OnGetMsg(MobaMessage msg) { base.LastError = 505; OperationResponse operationResponse = msg.Param as OperationResponse; if (operationResponse != null) { MobaGameCode mobaGameCode = MVC_MessageManager.NotifyModel_to_Game((ClientMsg)msg.ID); MobaGameCode mobaGameCode2 = mobaGameCode; if (mobaGameCode2 != MobaGameCode.SweepBattle) { if (mobaGameCode2 != MobaGameCode.RestTodayBattlesCount) { if (mobaGameCode2 != MobaGameCode.UploadFightResult) { if (mobaGameCode2 == MobaGameCode.GetBattles) { this.OnGetMsg_GetBattles(operationResponse); } } else { this.OnGetMsg_UploadFightResult(operationResponse); } } else { this.OnGetMsg_RestTodayBattlesCount(operationResponse); } } else { this.OnGetMsg_SweepBattle(operationResponse); } } base.TriggerListners(); }
protected void OnGetMsgGameCode(MobaMessage msg) { base.DebugMessage = ((base.LastError != 0) ? "===>好友内容取失败" : "===>好友内容获取成功"); if (msg != null) { OperationResponse operationResponse = msg.Param as OperationResponse; if (operationResponse != null) { MobaGameCode mobaGameCode = MVC_MessageManager.NotifyModel_to_Game((ClientMsg)msg.ID); base.LastMsgType = msg.ID; MobaGameCode mobaGameCode2 = mobaGameCode; switch (mobaGameCode2) { case MobaGameCode.GetFriendMessages: this.OnGetMsg_GetFriendMessages(operationResponse); goto IL_9B; case MobaGameCode.SendPrivateMessage: IL_67: if (mobaGameCode2 != MobaGameCode.SystemNotice) { goto IL_9B; } this.OnGetMsg_SystemNotice(operationResponse); goto IL_9B; case MobaGameCode.GetUserInfoBySummId: this.OnGetMsg_GetUserInfoBySummId(operationResponse); goto IL_9B; } goto IL_67; } } IL_9B: base.Valid = ((base.LastError == 0 || base.LastError == 20109 || base.LastError == 20105 || base.LastError == 20106 || base.LastError == 20107 || base.LastError == 20104 || base.LastError == 20101) && null != base.Data); base.TriggerListners(); }
protected override void OnGetMsg(MobaMessage msg) { UserData userData = ModelManager.Instance.Get_userData_X(); base.LastError = 505; OperationResponse operationResponse = msg.Param as OperationResponse; if (operationResponse != null) { MobaGameCode mobaGameCode = MVC_MessageManager.NotifyModel_to_Game((ClientMsg)msg.ID); MobaGameCode mobaGameCode2 = mobaGameCode; switch (mobaGameCode2) { case MobaGameCode.HeroAdvance: this.OnGetMsg_HeroAdvance(operationResponse); goto IL_1C2; case MobaGameCode.Enchant: this.OnGetMsg_Enchant(operationResponse); goto IL_1C2; case MobaGameCode.SellProps: this.OnGetMsg_SellProps(operationResponse); goto IL_1C2; case MobaGameCode.Coalesce: this.OnGetMsg_Coalesce(operationResponse); goto IL_1C2; case MobaGameCode.GetEquipmentList: this.OnGetMsg_GetEquipmentList(operationResponse); goto IL_1C2; case MobaGameCode.UsingEquipment: this.OnGetMsg_UsingEquipment(operationResponse); goto IL_1C2; case MobaGameCode.GetEquipmentDrop: case MobaGameCode.GetTalent: case MobaGameCode.ChangeTalent: case MobaGameCode.BuyTalentPag: case MobaGameCode.ModfiyTalentPag: case MobaGameCode.RestTalentPag: case MobaGameCode.GetRune: IL_86: switch (mobaGameCode2) { case MobaGameCode.SweepBattle: this.OnGetMsg_SweepBattle(operationResponse); goto IL_1C2; case MobaGameCode.RestTodayBattlesCount: case MobaGameCode.ReconnectToGameServer: case MobaGameCode.LuckyDrawState: IL_AB: if (mobaGameCode2 == MobaGameCode.BuyShopGoodsNew) { this.OnGetMsg_BuyShopGoodsNew(operationResponse); goto IL_1C2; } if (mobaGameCode2 == MobaGameCode.OneKeyCompose) { this.OnGetMsg_OneKeyCompose(operationResponse); goto IL_1C2; } if (mobaGameCode2 == MobaGameCode.ReceiveMailAttachment) { this.OnGetMsg_ReceiveMailAttachment(operationResponse); goto IL_1C2; } if (mobaGameCode2 == MobaGameCode.WearPrivateEffect) { this.OnGetMsg_WearPrivateEffect(operationResponse); goto IL_1C2; } if (mobaGameCode2 != MobaGameCode.ReceiveTBCReward) { goto IL_1C2; } this.OnGetMsg_ReceiveTBCReward(operationResponse); goto IL_1C2; case MobaGameCode.MagicBottleItem: this.OnGetMsg_UsingChangeNameCard(operationResponse); goto IL_1C2; case MobaGameCode.LuckyDraw: this.OnGetMsg_LuckyDraw(operationResponse); goto IL_1C2; case MobaGameCode.DischargeRune: this.OnGetMsg_DischargeRune(operationResponse); goto IL_1C2; } goto IL_AB; case MobaGameCode.UploadFightResult: this.OnGetMsg_UploadFightResult(operationResponse); goto IL_1C2; case MobaGameCode.UseSoulstone: this.OnGetMsg_UseSoulstone(operationResponse); goto IL_1C2; case MobaGameCode.UseProps: this.OnGetMsg_UseProps(operationResponse); goto IL_1C2; case MobaGameCode.ChangeRune: this.OnGetMsg_ChangeRune(operationResponse); goto IL_1C2; } goto IL_86; } IL_1C2: base.TriggerListners(); }
public static MobaMessageType ClientMsg_to_RawCode(ClientMsg code, out int retCode) { MobaMessageType result = MobaMessageType.Client; retCode = 0; if (code >= ClientMsg.NotifyModel_master_begin && code < ClientMsg.NotifyModel_master_end) { retCode = (int)MVC_MessageManager.NotifyModel_to_Master(code); result = MobaMessageType.MasterCode; } else if (code >= ClientMsg.NotifyModel_game_begin && code < ClientMsg.NotifyModel_game_end) { retCode = (int)MVC_MessageManager.NotifyModel_to_Game(code); result = MobaMessageType.GameCode; } else if (code >= ClientMsg.NotifyModel_friend_begin && code < ClientMsg.NotifyModel_friend_end) { retCode = (int)MVC_MessageManager.NotifyModel_to_Friend(code); result = MobaMessageType.FriendCode; } else if (code >= ClientMsg.NotifyModel_chat_begin && code < ClientMsg.NotifyModel_chat_end) { retCode = (int)MVC_MessageManager.NotifyModel_to_Chat(code); result = MobaMessageType.ChatCode; } else if (code >= ClientMsg.NotifyModel_teamroom_begin && code < ClientMsg.NotifyModel_teamroom_end) { retCode = (int)MVC_MessageManager.NotifyModel_to_TeamRoom(code); result = MobaMessageType.FriendCode; } else if (code >= ClientMsg.NotifyModel_userdata_begin && code < ClientMsg.NotifyModel_userdata_end) { retCode = (int)MVC_MessageManager.NotifyModel_to_UserData(code); result = MobaMessageType.UserDataCode; } else if (code >= ClientMsg.NotifyView_master_begin && code < ClientMsg.NotifyView_game_begin) { retCode = (int)MVC_MessageManager.NotifyView_to_Master(code); result = MobaMessageType.MasterCode; } else if (code >= ClientMsg.NotifyView_game_begin && code < ClientMsg.NotifyView_game_end) { retCode = (int)MVC_MessageManager.NotifyView_to_Game(code); result = MobaMessageType.GameCode; } else if (code >= ClientMsg.NotifyView_friend_begin && code < ClientMsg.NotifyView_friend_end) { retCode = (int)MVC_MessageManager.NotifyView_to_Friend(code); result = MobaMessageType.FriendCode; } else if (code >= ClientMsg.NotifyView_chat_begin && code < ClientMsg.NotifyView_chat_end) { retCode = (int)MVC_MessageManager.NotifyView_to_Chat(code); result = MobaMessageType.ChatCode; } else if (code >= ClientMsg.NotifyView_teamroom_begin && code < ClientMsg.NotifyView_teamroom_end) { retCode = (int)MVC_MessageManager.NotifyView_to_TeamRoom(code); result = MobaMessageType.FriendCode; } else if (code >= ClientMsg.NotifyView_userdata_begin && code < ClientMsg.NotifyView_userdata_end) { retCode = (int)MVC_MessageManager.NotifyView_to_UserData(code); result = MobaMessageType.UserDataCode; } return(result); }