//------------------------------------------------------------------------- // 请求刷新Ip所在地 public void requestRefreshIpAddress() { PlayerRequest player_request; player_request.id = PlayerRequestId.RefreshIpAddress; player_request.data = null; DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerRequest, player_request); }
//------------------------------------------------------------------------- public void requestSetVip4Test(bool is_vip) { PlayerRequest player_request; player_request.id = PlayerRequestId.SetVip4Test; player_request.data = EbTool.protobufSerialize <bool>(is_vip); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerRequest, player_request); }
//------------------------------------------------------------------------- // 请求改昵称 public void requestChangeNickName(string nick_name) { PlayerRequest player_request; player_request.id = PlayerRequestId.ChangeNickName; player_request.data = EbTool.protobufSerialize <string>(nick_name); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerRequest, player_request); }
//------------------------------------------------------------------------- // 请求改个人签名 public void requestChangeIndividualSignature(string sign) { PlayerRequest player_request; player_request.id = PlayerRequestId.ChangeIndividualSignature; player_request.data = EbTool.protobufSerialize <string>(sign); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerRequest, player_request); }
//------------------------------------------------------------------------- // 请求获取牌桌上其他玩家信息 public void requestGetPlayerInfoOther(string et_player_guid) { PlayerRequest player_request; player_request.id = PlayerRequestId.GetPlayerInfoOther; player_request.data = EbTool.protobufSerialize <string>(et_player_guid); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerRequest, player_request); }
//------------------------------------------------------------------------- // 请求换肤 public void requestChangePlayerProfileSkin(int profileskin_tableid) { PlayerRequest player_request; player_request.id = PlayerRequestId.ChangeProfileSkin; player_request.data = EbTool.protobufSerialize <int>(profileskin_tableid); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerRequest, player_request); }
//------------------------------------------------------------------------- // 请求获取在线玩家总数 public void requestGetOnlinePlayerNum() { PlayerRequest player_request; player_request.id = PlayerRequestId.GetOnlinePlayerNum; player_request.data = null; DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerRequest, player_request); }
//------------------------------------------------------------------------- // 请求离开桌子 public void requestLeaveDesktop() { PlayerRequest player_request; player_request.id = PlayerRequestId.LeaveDesktop; player_request.data = null; DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerRequest, player_request); }
//------------------------------------------------------------------------- // 请求创建私人牌桌 public void requestCreatePrivateDesktop(PrivateDesktopCreateInfo desktop_createinfo) { PlayerRequest player_request; player_request.id = PlayerRequestId.CreatePrivateDesktop; player_request.data = EbTool.protobufSerialize(desktop_createinfo); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerRequest, player_request); }
//------------------------------------------------------------------------- public void requestSetAFK(bool afk) { PlayerRequest player_request; player_request.id = PlayerRequestId.SetAFK; player_request.data = EbTool.protobufSerialize <bool>(afk); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerRequest, player_request); }
//------------------------------------------------------------------------- // 玩家坐下 public void requestPlayerSitdown(byte seat_index) { DesktopRequest desktop_request; desktop_request.id = DesktopRequestId.PlayerSitdown; desktop_request.data = EbTool.protobufSerialize <byte>(seat_index); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerDesktopRequest, desktop_request); }
//------------------------------------------------------------------------- // 请求进入指定桌子 public void requestEnterDesktop(string desktop_etguid) { PlayerRequest player_request; player_request.id = PlayerRequestId.EnterDesktop; player_request.data = EbTool.protobufSerialize(desktop_etguid); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerRequest, player_request); }
//------------------------------------------------------------------------- public void requestSceneRender2Logic(List <string> vec_param) { DesktopRequest desktop_request; desktop_request.id = DesktopRequestId.PlayerSceneAction; desktop_request.data = EbTool.protobufSerialize(vec_param); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerDesktopRequest, desktop_request); }
//------------------------------------------------------------------------- // 请求进入任意桌子 public void requestEnterDesktopAny() { PlayerRequest player_request; player_request.id = PlayerRequestId.EnterDesktopAny; player_request.data = null; DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerRequest, player_request); }
//------------------------------------------------------------------------- // 玩家回桌 public void requestPlayerReturn() { DesktopRequest desktop_request; desktop_request.id = DesktopRequestId.PlayerReturn; desktop_request.data = null; DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerDesktopRequest, desktop_request); }
//------------------------------------------------------------------------- // 请求初始化邮箱信息 public void requestMailBoxInitInfo() { PlayerMailBoxRequest mailbox_request; mailbox_request.id = PlayerMailBoxRequestId.MailBoxInitInfo; mailbox_request.data = null; DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerMailBoxRequest, mailbox_request); }
//------------------------------------------------------------------------- // 请求查找好友 public void requestFindFriend(string find_info) { PlayerFriendRequest playerfriend_request; playerfriend_request.id = PlayerFriendRequestId.FindFriend; playerfriend_request.data = EbTool.protobufSerialize <string>(find_info); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerFriendRequest, playerfriend_request); }
//------------------------------------------------------------------------- // 请求删除好友 public void requestDeleteFriend(string et_player_guid) { PlayerFriendRequest playerfriend_request; playerfriend_request.id = PlayerFriendRequestId.DeleteFriend; playerfriend_request.data = EbTool.protobufSerialize <string>(et_player_guid); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerFriendRequest, playerfriend_request); }
//------------------------------------------------------------------------- // 请求获取好友详细信息 public void requestGetPlayerInfoFriend(string player_etguid) { PlayerFriendRequest playerfriend_request; playerfriend_request.id = PlayerFriendRequestId.GetPlayerInfoFriend; playerfriend_request.data = EbTool.protobufSerialize <string>(player_etguid); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerRequest, player_etguid); }
//------------------------------------------------------------------------- // 玩家观战 public void requestPlayerOb() { EbLog.Note("requestPlayerOb"); DesktopRequest desktop_request; desktop_request.id = DesktopRequestId.PlayerOb; desktop_request.data = null; DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerDesktopRequest, desktop_request); }
//------------------------------------------------------------------------- // 请求邮件操作 public void requestMailOperate(MailOperate mail_operate) { PlayerMailBoxRequest mailbox_request; mailbox_request.id = PlayerMailBoxRequestId.MailOperate; mailbox_request.data = EbTool.protobufSerialize <MailOperate>(mail_operate); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerMailBoxRequest, mailbox_request); }
//------------------------------------------------------------------------- // 请求获取排行榜 public void requestGetRankingList(RankingListType ranking_list_type) { PlayerRankingRequest ranking_request; ranking_request.id = PlayerRankingRequestId.GetRankingList; ranking_request.data = EbTool.protobufSerialize <RankingListType>(ranking_list_type); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerRankingRequest, ranking_request); }
//------------------------------------------------------------------------- public void requestSetupStatus() { StatusRequest status_request; status_request.id = StatusRequestId.SetupStatus; status_request.data = null; DefaultRpcSession.rpc((ushort)MethodType.c2sStatusRequest, status_request); }
//------------------------------------------------------------------------- public void requestTakeoffEquip(EquipSlot equip_slot) { EquipRequest equip_request; equip_request.id = EquipRequestId.TakeoffEquip; equip_request.data = EbTool.protobufSerialize <EquipSlot>(equip_slot); DefaultRpcSession.rpc((ushort)MethodType.c2sEquipRequest, equip_request); }
//------------------------------------------------------------------------- public void requestSetupBag() { BagRequest bag_request; bag_request.id = BagRequestId.SetupBag; bag_request.data = null; DefaultRpcSession.rpc((ushort)MethodType.c2sBagRequest, bag_request); }
//------------------------------------------------------------------------- public void requestSetEquip() { EquipRequest equip_request; equip_request.id = EquipRequestId.SetupEquip; equip_request.data = null; DefaultRpcSession.rpc((ushort)MethodType.c2sEquipRequest, equip_request); }
//------------------------------------------------------------------------- // 请求放弃任务 public void requestGiveUpTask(int task_id) { PlayerTaskRequest playertask_request; playertask_request.id = PlayerTaskRequestId.TaskGiveUp; playertask_request.data = EbTool.protobufSerialize <int>(task_id); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerTaskRequest, playertask_request); }
//------------------------------------------------------------------------- // 根据任务状态发送任务请求 //public void requestTask(TaskBase task) //{ // EbLog.Note("ClientPlayerTask.requestTask() TaskId=" + task.TbDataTask.Id); // switch (task.TaskData.task_state) // { // case TaskState.CanDo: // { // requestAcceptTask(task.TaskData.task_id); // } // break; // case TaskState.Doing: // { // requestExcuteTask(task.TaskData.task_id); // } // break; // case TaskState.Done: // { // requestFinishTask(task.TaskData.task_id); // } // break; // default: // break; // } //} //------------------------------------------------------------------------- // 请求初始化任务 public void requestSetupTask() { PlayerTaskRequest playertask_request; playertask_request.id = PlayerTaskRequestId.SetupTask; playertask_request.data = null; DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerTaskRequest, playertask_request); }
//------------------------------------------------------------------------- // 请求交付任务 public void requestFinishTask(int task_id) { EbLog.Note("ClientPlayerTask.requestFinishTask() TaskId=" + task_id); PlayerTaskRequest playertask_request; playertask_request.id = PlayerTaskRequestId.TaskFinish; playertask_request.data = EbTool.protobufSerialize <int>(task_id); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerTaskRequest, playertask_request); }
//------------------------------------------------------------------------- // 请求搜索好友所在牌桌 public void requestSearchDesktopFollowFriend(string desktop_etguid) { // 开始转菊花 PlayerLobbyRequest lobby_request; lobby_request.id = PlayerLobbyRequestId.SearchDesktopFollowFriend; lobby_request.data = EbTool.protobufSerialize(desktop_etguid); DefaultRpcSession.rpc((ushort)MethodType.c2sPlayerLobbyRequest, lobby_request); }