From 9c8a6e102d0f1fc98956c53a4752cd674d2669d5 Mon Sep 17 00:00:00 2001 From: sin365 <353374337@qq.com> Date: Tue, 7 Jan 2025 01:08:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=20=E6=89=8B=E6=9F=84=E7=B1=BB=E5=9E=8B=E6=A6=82=E5=BF=B5?= =?UTF-8?q?=E5=92=8C=E6=9E=9A=E4=B8=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Manager/ClientManager.cs | 1 + .../Manager/LoginManager.cs | 7 +- AxibugEmuOnline.Server/Manager/RoomManager.cs | 16 +- AxibugEmuOnline.Server/Manager/UserManager.cs | 11 +- .../PublishProfiles/FolderProfile.pubxml.user | 2 +- .../FolderProfile1.pubxml.user | 2 +- .../Protobuf/ProtobufAxibugEmuOnline.cs | 297 +++++++++++++----- .../out/CS/ProtobufAxibugEmuOnline.cs | 297 +++++++++++++----- .../proto/protobuf_AxibugEmuOnline.proto | 23 +- 9 files changed, 498 insertions(+), 158 deletions(-) diff --git a/AxibugEmuOnline.Server/Manager/ClientManager.cs b/AxibugEmuOnline.Server/Manager/ClientManager.cs index 95cbbdee..56f76c1d 100644 --- a/AxibugEmuOnline.Server/Manager/ClientManager.cs +++ b/AxibugEmuOnline.Server/Manager/ClientManager.cs @@ -15,6 +15,7 @@ namespace AxibugEmuOnline.Server.Manager public long UID { get; set; } public string NickName { get; set; } = string.Empty; public string Account { get; set; } = string.Empty; + internal DeviceType deviceType { get; set; } = DeviceType.Default; public Socket _socket { get; set; } public bool IsOffline { get; set; } = false; public DateTime RegisterDT { get; set; } diff --git a/AxibugEmuOnline.Server/Manager/LoginManager.cs b/AxibugEmuOnline.Server/Manager/LoginManager.cs index 7e9568ce..141baa91 100644 --- a/AxibugEmuOnline.Server/Manager/LoginManager.cs +++ b/AxibugEmuOnline.Server/Manager/LoginManager.cs @@ -47,7 +47,7 @@ namespace AxibugEmuOnline.Server.Manager ClientInfo _c = AppSrv.g_ClientMgr.JoinNewClient(_uid, _socket); - UpdateUserData(_uid, _c); + UpdateUserData(_uid, _c,msg.DeviceType); EventSystem.Instance.PostEvent(EEvent.OnUserOnline, _c.UID); @@ -97,6 +97,8 @@ namespace AxibugEmuOnline.Server.Manager UserMiniInfo miniinfo = new UserMiniInfo() { NickName = _c.NickName, + DeviceType = _c.deviceType, + UID = _c.UID }; Protobuf_Update_UserInfo_RESP infodata = new Protobuf_Update_UserInfo_RESP() @@ -198,7 +200,7 @@ namespace AxibugEmuOnline.Server.Manager return bDone; } - public void UpdateUserData(long uid, ClientInfo _c) + public void UpdateUserData(long uid, ClientInfo _c, DeviceType deviceType) { MySqlConnection conn = Haoyue_SQLPoolManager.DequeueSQLConn("UpdateUserData"); try @@ -219,6 +221,7 @@ namespace AxibugEmuOnline.Server.Manager _c.LogInDT = DateTime.Now; _c.RegisterDT = reader.IsDBNull(2) ? DateTime.Now : reader.GetDateTime(2); _c.LastLogInDT = reader.IsDBNull(3) ? DateTime.Now : reader.GetDateTime(3); + _c.deviceType = deviceType; } } } diff --git a/AxibugEmuOnline.Server/Manager/RoomManager.cs b/AxibugEmuOnline.Server/Manager/RoomManager.cs index e0993fd1..28a807ea 100644 --- a/AxibugEmuOnline.Server/Manager/RoomManager.cs +++ b/AxibugEmuOnline.Server/Manager/RoomManager.cs @@ -162,8 +162,12 @@ namespace AxibugEmuOnline.Server { pbSlot.PlayerUID = slot.UID; pbSlot.PlayerLocalJoyIdx = (int)slot.LocalJoyIdx; + pbSlot.PlayerLocalGamePadType = slot.LocalGamePadType; if (AppSrv.g_ClientMgr.GetClientByUID(pbSlot.PlayerUID, out ClientInfo _client)) + { pbSlot.PlayerNickName = _client.NickName; + pbSlot.DeviceType = _client.deviceType; + } } result.GamePlaySlotList.Add(pbSlot); } @@ -382,7 +386,7 @@ namespace AxibugEmuOnline.Server return; } - Dictionary newSlotIdx2JoyIdx = new Dictionary(); + Dictionary newSlotIdx2JoyIdx = new Dictionary(); foreach (var slotinfo in msg.SlotWithJoy) { //如果有任意一个槽位有人 @@ -396,7 +400,7 @@ namespace AxibugEmuOnline.Server return; } } - newSlotIdx2JoyIdx[(uint)slotinfo.PlayerSlotIdx] = (uint)slotinfo.PlayerLocalJoyIdx; + newSlotIdx2JoyIdx[(uint)slotinfo.PlayerSlotIdx] = ((uint)slotinfo.PlayerLocalJoyIdx, slotinfo.PlayerLocalGamePadType); } room.SetPlayerSlotData(_c, ref newSlotIdx2JoyIdx); @@ -830,7 +834,7 @@ namespace AxibugEmuOnline.Server } #endregion - public void SetPlayerSlotData(ClientInfo _c, ref readonly Dictionary newSlotIdx2JoyIdx) + public void SetPlayerSlotData(ClientInfo _c, ref readonly Dictionary newSlotIdx2JoyIdx) { GetSlotDataByUID(_c.UID, out Dictionary oldSlotIdx2JoyIdx); HashSet diffSlotIdxs = ObjectPoolAuto.AcquireSet();// new HashSet(); @@ -844,7 +848,7 @@ namespace AxibugEmuOnline.Server } uint old_slotjoyIdx = old.Value; //如果旧位置不变,但客户端本地JoyIdx变化则算作diff - if (old_slotjoyIdx != newSlotIdx2JoyIdx[old_slotIdx]) + if (old_slotjoyIdx != newSlotIdx2JoyIdx[old_slotIdx].Item1) { diffSlotIdxs.Add(old_slotIdx); continue; } @@ -866,7 +870,8 @@ namespace AxibugEmuOnline.Server //设置新的槽位 foreach (var slotdata in newSlotIdx2JoyIdx) { - PlayerSlot[slotdata.Key].LocalJoyIdx = slotdata.Value; + PlayerSlot[slotdata.Key].LocalJoyIdx = slotdata.Value.Item1; + PlayerSlot[slotdata.Key].LocalGamePadType = slotdata.Value.Item2; PlayerSlot[slotdata.Key].UID = _c.UID; AppSrv.g_Log.DebugCmd($"SetPlayerSlot RoomID->{RoomID} _c.UID->{_c.UID} PlayerSlotIdx->{slotdata.Key} LocalJoyIdx->{slotdata.Value}"); } @@ -1258,6 +1263,7 @@ namespace AxibugEmuOnline.Server public uint SlotIdx { get; set; } public long UID { get; set; } public uint LocalJoyIdx { get; set; } + public GamePadType LocalGamePadType { get; set; } public bool Ready = false; public void Init(uint SlotIdx) { diff --git a/AxibugEmuOnline.Server/Manager/UserManager.cs b/AxibugEmuOnline.Server/Manager/UserManager.cs index bce4ec43..61b72a36 100644 --- a/AxibugEmuOnline.Server/Manager/UserManager.cs +++ b/AxibugEmuOnline.Server/Manager/UserManager.cs @@ -46,6 +46,7 @@ namespace AxibugEmuOnline.Server.Manager { NickName = client.NickName, UID = client.UID, + DeviceType = client.deviceType, }); } AppSrv.g_Log.Debug($"拉取用户列表->{respData.UserCount}个用户"); @@ -58,10 +59,12 @@ namespace AxibugEmuOnline.Server.Manager ClientInfo _c = AppSrv.g_ClientMgr.GetClientForUID(UID); if (_c == null) return; - UserMiniInfo miniInfo = new UserMiniInfo(); - - miniInfo.NickName = _c.NickName; - UID = _c.UID; + UserMiniInfo miniInfo = new UserMiniInfo() + { + DeviceType = _c.deviceType, + NickName = _c.NickName, + UID = _c.UID + }; Protobuf_UserJoin_RESP resp = new Protobuf_UserJoin_RESP() { UserInfo = miniInfo diff --git a/AxibugEmuOnline.Server/Properties/PublishProfiles/FolderProfile.pubxml.user b/AxibugEmuOnline.Server/Properties/PublishProfiles/FolderProfile.pubxml.user index 880c1b01..ea54bbee 100644 --- a/AxibugEmuOnline.Server/Properties/PublishProfiles/FolderProfile.pubxml.user +++ b/AxibugEmuOnline.Server/Properties/PublishProfiles/FolderProfile.pubxml.user @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. --> - True|2025-01-02T07:36:28.7979053Z||;True|2025-01-02T15:31:33.8583976+08:00||;True|2024-12-11T10:52:05.7940446+08:00||;True|2024-12-04T22:26:53.2238425+08:00||;True|2024-12-04T22:26:10.9572308+08:00||;True|2024-12-04T21:24:20.1913809+08:00||;True|2024-12-04T21:24:02.9590471+08:00||;True|2024-12-04T01:43:54.7646411+08:00||;True|2024-12-04T01:22:11.8117030+08:00||;True|2024-12-04T01:20:06.5770785+08:00||;True|2024-12-04T01:16:31.6391421+08:00||;True|2024-12-04T01:12:43.4697251+08:00||;True|2024-12-04T01:07:04.8333668+08:00||;True|2024-12-04T00:59:23.6611648+08:00||;True|2024-12-04T00:27:05.0229247+08:00||;True|2024-12-03T23:50:48.5712706+08:00||;True|2024-12-03T23:47:47.1095592+08:00||;True|2024-12-03T20:24:57.4098592+08:00||;True|2024-12-03T20:16:36.9886489+08:00||;True|2024-12-03T20:15:52.5482738+08:00||;True|2024-12-02T20:10:07.8192795+08:00||;True|2024-11-28T19:58:55.3995125+08:00||;True|2024-09-14T16:39:29.4677979+08:00||;True|2024-09-14T16:38:22.2398996+08:00||;True|2024-09-13T13:39:28.9591993+08:00||;True|2024-09-12T17:48:43.1521740+08:00||;True|2024-09-12T17:43:57.0504432+08:00||;True|2024-09-12T17:19:48.6392091+08:00||;True|2024-09-12T13:38:45.0141937+08:00||;False|2024-09-12T13:37:57.6131232+08:00||;True|2024-06-28T16:25:59.3159172+08:00||;True|2024-06-28T15:30:49.8257235+08:00||; + False|2025-01-06T16:15:36.1324899Z||;True|2025-01-02T15:36:28.7979053+08:00||;True|2025-01-02T15:31:33.8583976+08:00||;True|2024-12-11T10:52:05.7940446+08:00||;True|2024-12-04T22:26:53.2238425+08:00||;True|2024-12-04T22:26:10.9572308+08:00||;True|2024-12-04T21:24:20.1913809+08:00||;True|2024-12-04T21:24:02.9590471+08:00||;True|2024-12-04T01:43:54.7646411+08:00||;True|2024-12-04T01:22:11.8117030+08:00||;True|2024-12-04T01:20:06.5770785+08:00||;True|2024-12-04T01:16:31.6391421+08:00||;True|2024-12-04T01:12:43.4697251+08:00||;True|2024-12-04T01:07:04.8333668+08:00||;True|2024-12-04T00:59:23.6611648+08:00||;True|2024-12-04T00:27:05.0229247+08:00||;True|2024-12-03T23:50:48.5712706+08:00||;True|2024-12-03T23:47:47.1095592+08:00||;True|2024-12-03T20:24:57.4098592+08:00||;True|2024-12-03T20:16:36.9886489+08:00||;True|2024-12-03T20:15:52.5482738+08:00||;True|2024-12-02T20:10:07.8192795+08:00||;True|2024-11-28T19:58:55.3995125+08:00||;True|2024-09-14T16:39:29.4677979+08:00||;True|2024-09-14T16:38:22.2398996+08:00||;True|2024-09-13T13:39:28.9591993+08:00||;True|2024-09-12T17:48:43.1521740+08:00||;True|2024-09-12T17:43:57.0504432+08:00||;True|2024-09-12T17:19:48.6392091+08:00||;True|2024-09-12T13:38:45.0141937+08:00||;False|2024-09-12T13:37:57.6131232+08:00||;True|2024-06-28T16:25:59.3159172+08:00||;True|2024-06-28T15:30:49.8257235+08:00||; \ No newline at end of file diff --git a/AxibugEmuOnline.Server/Properties/PublishProfiles/FolderProfile1.pubxml.user b/AxibugEmuOnline.Server/Properties/PublishProfiles/FolderProfile1.pubxml.user index 7d6c2dc2..99e925a8 100644 --- a/AxibugEmuOnline.Server/Properties/PublishProfiles/FolderProfile1.pubxml.user +++ b/AxibugEmuOnline.Server/Properties/PublishProfiles/FolderProfile1.pubxml.user @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. --> - False|2025-01-02T07:36:18.1906464Z||;False|2025-01-02T15:36:06.5622643+08:00||;True|2024-12-27T18:24:49.7554320+08:00||; + True|2025-01-06T16:21:47.4863058Z||;True|2025-01-07T00:16:42.7998249+08:00||;False|2025-01-07T00:16:02.8107509+08:00||;False|2025-01-02T15:36:18.1906464+08:00||;False|2025-01-02T15:36:06.5622643+08:00||;True|2024-12-27T18:24:49.7554320+08:00||; \ No newline at end of file diff --git a/AxibugEmuOnline.Server/Protobuf/ProtobufAxibugEmuOnline.cs b/AxibugEmuOnline.Server/Protobuf/ProtobufAxibugEmuOnline.cs index 2450e1ba..23109b91 100644 --- a/AxibugEmuOnline.Server/Protobuf/ProtobufAxibugEmuOnline.cs +++ b/AxibugEmuOnline.Server/Protobuf/ProtobufAxibugEmuOnline.cs @@ -59,72 +59,82 @@ namespace AxibugProtobuf { "YnVmLl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NlEAASDgoKVXNlQWNjb3VudBAB", + "EhQKEFVzZUhhb1l1ZUFjY291bnQQAiqSAQoKRGV2aWNlVHlwZRIWChJEZXZp", + "Y2VUeXBlX0RlZmF1bHQQABIGCgJQQxABEgsKB0FuZHJvaWQQAhIHCgNJT1MQ", + "AxIHCgNQU1YQBBIHCgNQUzMQBRIHCgNQUzQQBhILCgdYQk9YMzYwEAcSCwoH", + "WEJPWE9ORRAIEggKBFdpaVUQCRIPCgtOaW50ZW5kbzNEUxAKKpMCCgtHYW1l", + "UGFkVHlwZRIMCghLZXlib2FyZBAAEhEKDUdsb2JhbEdhbWVQYWQQARIOCgpU", + "b3VjaFBhbmVsEAISDgoKRFMzQ29udHJvbBADEg4KCkRTNENvbnRyb2wQBBIO", + "CgpEUzVDb250cm9sEAUSFAoQU3dpdGNoUHJvQ29udHJvbBAGEhAKDFN3aXRj", + "aEpveUNvbhAHEhIKDlhCT1gzNjBDb250cm9sEAgSEgoOWEJPWE9ORUNvbnRy", + "b2wQCRIRCg1QU1ZpdGFDb250cm9sEAoSEgoOV2lpVVBhZENvbnRyb2wQCxIU", + "ChBXaWlSZW1vdGVDb250cm9sEAwSFgoSTmludGVuZG8zRFNDb250cm9sEA0q", "ZAoMUGxhdGZvcm1UeXBlEgcKA0FsbBAAEgcKA05lcxABEhEKDU1hc3Rlcl9T", "eXN0ZW0QAhINCglHYW1lX0dlYXIQAxIMCghHYW1lX0JveRAEEhIKDkdhbWVf", "Qm95X0NvbG9yEAUqcAoNUm9vbUdhbWVTdGF0ZRISCg5Ob25lX0dhbWVTdGF0", @@ -134,7 +144,7 @@ namespace AxibugProtobuf { "ABIGCgJPSxABEg4KCkFjY291bnRFcnIQAkICSAFiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AxibugProtobuf.CommandID), typeof(global::AxibugProtobuf.ErrorCode), typeof(global::AxibugProtobuf.LoginType), typeof(global::AxibugProtobuf.DeviceType), typeof(global::AxibugProtobuf.PlatformType), typeof(global::AxibugProtobuf.RoomGameState), typeof(global::AxibugProtobuf.LoginResultStatus), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AxibugProtobuf.CommandID), typeof(global::AxibugProtobuf.ErrorCode), typeof(global::AxibugProtobuf.LoginType), typeof(global::AxibugProtobuf.DeviceType), typeof(global::AxibugProtobuf.GamePadType), typeof(global::AxibugProtobuf.PlatformType), typeof(global::AxibugProtobuf.RoomGameState), typeof(global::AxibugProtobuf.LoginResultStatus), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_ChatMsg), global::AxibugProtobuf.Protobuf_ChatMsg.Parser, new[]{ "ChatMsg" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_ChatMsg_RESP), global::AxibugProtobuf.Protobuf_ChatMsg_RESP.Parser, new[]{ "NickName", "ChatMsg", "Date" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Ping), global::AxibugProtobuf.Protobuf_Ping.Parser, new[]{ "Seed" }, null, null, null, null), @@ -154,7 +164,7 @@ namespace AxibugProtobuf { new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_List), global::AxibugProtobuf.Protobuf_Room_List.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_List_RESP), global::AxibugProtobuf.Protobuf_Room_List_RESP.Parser, new[]{ "RoomMiniInfoList" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_MiniInfo), global::AxibugProtobuf.Protobuf_Room_MiniInfo.Parser, new[]{ "RoomID", "GameRomID", "GameRomHash", "HostPlayerUID", "GameState", "ObsUserCount", "ScreenProviderUID", "GamePlaySlotList" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_GamePlaySlot), global::AxibugProtobuf.Protobuf_Room_GamePlaySlot.Parser, new[]{ "PlayerUID", "PlayerNickName", "PlayerLocalJoyIdx" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_GamePlaySlot), global::AxibugProtobuf.Protobuf_Room_GamePlaySlot.Parser, new[]{ "PlayerUID", "PlayerNickName", "DeviceType", "PlayerLocalJoyIdx", "PlayerLocalGamePadType" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Update_RESP), global::AxibugProtobuf.Protobuf_Room_Update_RESP.Parser, new[]{ "UpdateType", "RoomMiniInfo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Screnn_Frame), global::AxibugProtobuf.Protobuf_Screnn_Frame.Parser, new[]{ "RoomID", "FrameID", "RawBitmap" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_SinglePlayerInputData), global::AxibugProtobuf.Protobuf_Room_SinglePlayerInputData.Parser, new[]{ "FrameID", "InputData" }, null, null, null, null), @@ -167,7 +177,7 @@ namespace AxibugProtobuf { new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Leave_RESP), global::AxibugProtobuf.Protobuf_Room_Leave_RESP.Parser, new[]{ "RoomID" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_MyRoom_State_Change), global::AxibugProtobuf.Protobuf_Room_MyRoom_State_Change.Parser, new[]{ "RoomMiniInfo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Change_PlaySlotWithJoy), global::AxibugProtobuf.Protobuf_Room_Change_PlaySlotWithJoy.Parser, new[]{ "SlotWithJoy" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_PlaySlotIdxWithJoyIdx), global::AxibugProtobuf.Protobuf_PlaySlotIdxWithJoyIdx.Parser, new[]{ "PlayerSlotIdx", "PlayerLocalJoyIdx" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_PlaySlotIdxWithJoyIdx), global::AxibugProtobuf.Protobuf_PlaySlotIdxWithJoyIdx.Parser, new[]{ "PlayerSlotIdx", "PlayerLocalJoyIdx", "PlayerLocalGamePadType" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Change_PlaySlotWithJoy_RESP), global::AxibugProtobuf.Protobuf_Room_Change_PlaySlotWithJoy_RESP.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_WaitStep_RESP), global::AxibugProtobuf.Protobuf_Room_WaitStep_RESP.Parser, new[]{ "WaitStep", "LoadStateRaw" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_HostPlayer_UpdateStateRaw), global::AxibugProtobuf.Protobuf_Room_HostPlayer_UpdateStateRaw.Parser, new[]{ "LoadStateRaw" }, null, null, null, null), @@ -375,6 +385,32 @@ namespace AxibugProtobuf { [pbr::OriginalName("Nintendo3DS")] Nintendo3Ds = 10, } + public enum GamePadType { + /// + ///键盘 + /// + [pbr::OriginalName("Keyboard")] Keyboard = 0, + /// + ///通用手柄 + /// + [pbr::OriginalName("GlobalGamePad")] GlobalGamePad = 1, + /// + ///触屏 + /// + [pbr::OriginalName("TouchPanel")] TouchPanel = 2, + [pbr::OriginalName("DS3Control")] Ds3Control = 3, + [pbr::OriginalName("DS4Control")] Ds4Control = 4, + [pbr::OriginalName("DS5Control")] Ds5Control = 5, + [pbr::OriginalName("SwitchProControl")] SwitchProControl = 6, + [pbr::OriginalName("SwitchJoyCon")] SwitchJoyCon = 7, + [pbr::OriginalName("XBOX360Control")] Xbox360Control = 8, + [pbr::OriginalName("XBOXONEControl")] Xboxonecontrol = 9, + [pbr::OriginalName("PSVitaControl")] PsvitaControl = 10, + [pbr::OriginalName("WiiUPadControl")] WiiUpadControl = 11, + [pbr::OriginalName("WiiRemoteControl")] WiiRemoteControl = 12, + [pbr::OriginalName("Nintendo3DSControl")] Nintendo3Dscontrol = 13, + } + public enum PlatformType { [pbr::OriginalName("All")] All = 0, [pbr::OriginalName("Nes")] Nes = 1, @@ -4586,7 +4622,9 @@ namespace AxibugProtobuf { public Protobuf_Room_GamePlaySlot(Protobuf_Room_GamePlaySlot other) : this() { playerUID_ = other.playerUID_; playerNickName_ = other.playerNickName_; + deviceType_ = other.deviceType_; playerLocalJoyIdx_ = other.playerLocalJoyIdx_; + playerLocalGamePadType_ = other.playerLocalGamePadType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -4623,8 +4661,22 @@ namespace AxibugProtobuf { } } + /// Field number for the "deviceType" field. + public const int DeviceTypeFieldNumber = 3; + private global::AxibugProtobuf.DeviceType deviceType_ = global::AxibugProtobuf.DeviceType.Default; + /// + ///用户设备类型 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.DeviceType DeviceType { + get { return deviceType_; } + set { + deviceType_ = value; + } + } + /// Field number for the "PlayerLocalJoyIdx" field. - public const int PlayerLocalJoyIdxFieldNumber = 3; + public const int PlayerLocalJoyIdxFieldNumber = 4; private int playerLocalJoyIdx_; /// ///客户端JoyIdx @@ -4637,6 +4689,20 @@ namespace AxibugProtobuf { } } + /// Field number for the "PlayerLocalGamePadType" field. + public const int PlayerLocalGamePadTypeFieldNumber = 5; + private global::AxibugProtobuf.GamePadType playerLocalGamePadType_ = global::AxibugProtobuf.GamePadType.Keyboard; + /// + ///客户端手柄类型 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.GamePadType PlayerLocalGamePadType { + get { return playerLocalGamePadType_; } + set { + playerLocalGamePadType_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Protobuf_Room_GamePlaySlot); @@ -4652,7 +4718,9 @@ namespace AxibugProtobuf { } if (PlayerUID != other.PlayerUID) return false; if (PlayerNickName != other.PlayerNickName) return false; + if (DeviceType != other.DeviceType) return false; if (PlayerLocalJoyIdx != other.PlayerLocalJoyIdx) return false; + if (PlayerLocalGamePadType != other.PlayerLocalGamePadType) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4661,7 +4729,9 @@ namespace AxibugProtobuf { int hash = 1; if (PlayerUID != 0L) hash ^= PlayerUID.GetHashCode(); if (PlayerNickName.Length != 0) hash ^= PlayerNickName.GetHashCode(); + if (DeviceType != global::AxibugProtobuf.DeviceType.Default) hash ^= DeviceType.GetHashCode(); if (PlayerLocalJoyIdx != 0) hash ^= PlayerLocalJoyIdx.GetHashCode(); + if (PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) hash ^= PlayerLocalGamePadType.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4686,10 +4756,18 @@ namespace AxibugProtobuf { output.WriteRawTag(18); output.WriteString(PlayerNickName); } - if (PlayerLocalJoyIdx != 0) { + if (DeviceType != global::AxibugProtobuf.DeviceType.Default) { output.WriteRawTag(24); + output.WriteEnum((int) DeviceType); + } + if (PlayerLocalJoyIdx != 0) { + output.WriteRawTag(32); output.WriteInt32(PlayerLocalJoyIdx); } + if (PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) { + output.WriteRawTag(40); + output.WriteEnum((int) PlayerLocalGamePadType); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4707,10 +4785,18 @@ namespace AxibugProtobuf { output.WriteRawTag(18); output.WriteString(PlayerNickName); } - if (PlayerLocalJoyIdx != 0) { + if (DeviceType != global::AxibugProtobuf.DeviceType.Default) { output.WriteRawTag(24); + output.WriteEnum((int) DeviceType); + } + if (PlayerLocalJoyIdx != 0) { + output.WriteRawTag(32); output.WriteInt32(PlayerLocalJoyIdx); } + if (PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) { + output.WriteRawTag(40); + output.WriteEnum((int) PlayerLocalGamePadType); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -4726,9 +4812,15 @@ namespace AxibugProtobuf { if (PlayerNickName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PlayerNickName); } + if (DeviceType != global::AxibugProtobuf.DeviceType.Default) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DeviceType); + } if (PlayerLocalJoyIdx != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayerLocalJoyIdx); } + if (PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlayerLocalGamePadType); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -4746,9 +4838,15 @@ namespace AxibugProtobuf { if (other.PlayerNickName.Length != 0) { PlayerNickName = other.PlayerNickName; } + if (other.DeviceType != global::AxibugProtobuf.DeviceType.Default) { + DeviceType = other.DeviceType; + } if (other.PlayerLocalJoyIdx != 0) { PlayerLocalJoyIdx = other.PlayerLocalJoyIdx; } + if (other.PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) { + PlayerLocalGamePadType = other.PlayerLocalGamePadType; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4772,9 +4870,17 @@ namespace AxibugProtobuf { break; } case 24: { + DeviceType = (global::AxibugProtobuf.DeviceType) input.ReadEnum(); + break; + } + case 32: { PlayerLocalJoyIdx = input.ReadInt32(); break; } + case 40: { + PlayerLocalGamePadType = (global::AxibugProtobuf.GamePadType) input.ReadEnum(); + break; + } } } #endif @@ -4798,9 +4904,17 @@ namespace AxibugProtobuf { break; } case 24: { + DeviceType = (global::AxibugProtobuf.DeviceType) input.ReadEnum(); + break; + } + case 32: { PlayerLocalJoyIdx = input.ReadInt32(); break; } + case 40: { + PlayerLocalGamePadType = (global::AxibugProtobuf.GamePadType) input.ReadEnum(); + break; + } } } } @@ -7270,6 +7384,7 @@ namespace AxibugProtobuf { public Protobuf_PlaySlotIdxWithJoyIdx(Protobuf_PlaySlotIdxWithJoyIdx other) : this() { playerSlotIdx_ = other.playerSlotIdx_; playerLocalJoyIdx_ = other.playerLocalJoyIdx_; + playerLocalGamePadType_ = other.playerLocalGamePadType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -7306,6 +7421,20 @@ namespace AxibugProtobuf { } } + /// Field number for the "PlayerLocalGamePadType" field. + public const int PlayerLocalGamePadTypeFieldNumber = 3; + private global::AxibugProtobuf.GamePadType playerLocalGamePadType_ = global::AxibugProtobuf.GamePadType.Keyboard; + /// + ///客户端手柄类型 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.GamePadType PlayerLocalGamePadType { + get { return playerLocalGamePadType_; } + set { + playerLocalGamePadType_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Protobuf_PlaySlotIdxWithJoyIdx); @@ -7321,6 +7450,7 @@ namespace AxibugProtobuf { } if (PlayerSlotIdx != other.PlayerSlotIdx) return false; if (PlayerLocalJoyIdx != other.PlayerLocalJoyIdx) return false; + if (PlayerLocalGamePadType != other.PlayerLocalGamePadType) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7329,6 +7459,7 @@ namespace AxibugProtobuf { int hash = 1; if (PlayerSlotIdx != 0) hash ^= PlayerSlotIdx.GetHashCode(); if (PlayerLocalJoyIdx != 0) hash ^= PlayerLocalJoyIdx.GetHashCode(); + if (PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) hash ^= PlayerLocalGamePadType.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7353,6 +7484,10 @@ namespace AxibugProtobuf { output.WriteRawTag(16); output.WriteInt32(PlayerLocalJoyIdx); } + if (PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) { + output.WriteRawTag(24); + output.WriteEnum((int) PlayerLocalGamePadType); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7370,6 +7505,10 @@ namespace AxibugProtobuf { output.WriteRawTag(16); output.WriteInt32(PlayerLocalJoyIdx); } + if (PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) { + output.WriteRawTag(24); + output.WriteEnum((int) PlayerLocalGamePadType); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7385,6 +7524,9 @@ namespace AxibugProtobuf { if (PlayerLocalJoyIdx != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayerLocalJoyIdx); } + if (PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlayerLocalGamePadType); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7402,6 +7544,9 @@ namespace AxibugProtobuf { if (other.PlayerLocalJoyIdx != 0) { PlayerLocalJoyIdx = other.PlayerLocalJoyIdx; } + if (other.PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) { + PlayerLocalGamePadType = other.PlayerLocalGamePadType; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7424,6 +7569,10 @@ namespace AxibugProtobuf { PlayerLocalJoyIdx = input.ReadInt32(); break; } + case 24: { + PlayerLocalGamePadType = (global::AxibugProtobuf.GamePadType) input.ReadEnum(); + break; + } } } #endif @@ -7446,6 +7595,10 @@ namespace AxibugProtobuf { PlayerLocalJoyIdx = input.ReadInt32(); break; } + case 24: { + PlayerLocalGamePadType = (global::AxibugProtobuf.GamePadType) input.ReadEnum(); + break; + } } } } diff --git a/ProtobufCore/out/CS/ProtobufAxibugEmuOnline.cs b/ProtobufCore/out/CS/ProtobufAxibugEmuOnline.cs index 2450e1ba..23109b91 100644 --- a/ProtobufCore/out/CS/ProtobufAxibugEmuOnline.cs +++ b/ProtobufCore/out/CS/ProtobufAxibugEmuOnline.cs @@ -59,72 +59,82 @@ namespace AxibugProtobuf { "YnVmLlJvb21HYW1lU3RhdGUSFAoMT2JzVXNlckNvdW50GAYgASgFEhkKEVNj", "cmVlblByb3ZpZGVyVUlEGAcgASgDEkQKEEdhbWVQbGF5U2xvdExpc3QYCCAD", "KAsyKi5BeGlidWdQcm90b2J1Zi5Qcm90b2J1Zl9Sb29tX0dhbWVQbGF5U2xv", - "dCJkChpQcm90b2J1Zl9Sb29tX0dhbWVQbGF5U2xvdBISCgpQbGF5ZXJfVUlE", - "GAEgASgDEhcKD1BsYXllcl9OaWNrTmFtZRgCIAEoCRIZChFQbGF5ZXJMb2Nh", - "bEpveUlkeBgDIAEoBSJtChlQcm90b2J1Zl9Sb29tX1VwZGF0ZV9SRVNQEhIK", - "ClVwZGF0ZVR5cGUYASABKAUSPAoMUm9vbU1pbmlJbmZvGAIgASgLMiYuQXhp", - "YnVnUHJvdG9idWYuUHJvdG9idWZfUm9vbV9NaW5pSW5mbyJLChVQcm90b2J1", - "Zl9TY3Jlbm5fRnJhbWUSDgoGUm9vbUlEGAEgASgFEg8KB0ZyYW1lSUQYAiAB", - "KAUSEQoJUmF3Qml0bWFwGAMgASgMIkkKI1Byb3RvYnVmX1Jvb21fU2luZ2xl", - "UGxheWVySW5wdXREYXRhEg8KB0ZyYW1lSUQYASABKA0SEQoJSW5wdXREYXRh", - "GAIgASgNIoABCidQcm90b2J1Zl9Sb29tX1N5bl9Sb29tRnJhbWVBbGxJbnB1", - "dERhdGESDwoHRnJhbWVJRBgBIAEoDRIRCglJbnB1dERhdGEYAiABKAQSFQoN", - "U2VydmVyRnJhbWVJRBgDIAEoDRIaChJTZXJ2ZXJGb3J3YXJkQ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AxibugProtobuf { "ABIGCgJPSxABEg4KCkFjY291bnRFcnIQAkICSAFiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AxibugProtobuf.CommandID), typeof(global::AxibugProtobuf.ErrorCode), typeof(global::AxibugProtobuf.LoginType), typeof(global::AxibugProtobuf.DeviceType), typeof(global::AxibugProtobuf.PlatformType), typeof(global::AxibugProtobuf.RoomGameState), typeof(global::AxibugProtobuf.LoginResultStatus), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AxibugProtobuf.CommandID), typeof(global::AxibugProtobuf.ErrorCode), typeof(global::AxibugProtobuf.LoginType), typeof(global::AxibugProtobuf.DeviceType), typeof(global::AxibugProtobuf.GamePadType), typeof(global::AxibugProtobuf.PlatformType), typeof(global::AxibugProtobuf.RoomGameState), typeof(global::AxibugProtobuf.LoginResultStatus), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_ChatMsg), global::AxibugProtobuf.Protobuf_ChatMsg.Parser, new[]{ "ChatMsg" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_ChatMsg_RESP), global::AxibugProtobuf.Protobuf_ChatMsg_RESP.Parser, new[]{ "NickName", "ChatMsg", "Date" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Ping), global::AxibugProtobuf.Protobuf_Ping.Parser, new[]{ "Seed" }, null, null, null, null), @@ -154,7 +164,7 @@ namespace AxibugProtobuf { new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_List), global::AxibugProtobuf.Protobuf_Room_List.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_List_RESP), global::AxibugProtobuf.Protobuf_Room_List_RESP.Parser, new[]{ "RoomMiniInfoList" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_MiniInfo), global::AxibugProtobuf.Protobuf_Room_MiniInfo.Parser, new[]{ "RoomID", "GameRomID", "GameRomHash", "HostPlayerUID", "GameState", "ObsUserCount", "ScreenProviderUID", "GamePlaySlotList" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_GamePlaySlot), global::AxibugProtobuf.Protobuf_Room_GamePlaySlot.Parser, new[]{ "PlayerUID", "PlayerNickName", "PlayerLocalJoyIdx" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_GamePlaySlot), global::AxibugProtobuf.Protobuf_Room_GamePlaySlot.Parser, new[]{ "PlayerUID", "PlayerNickName", "DeviceType", "PlayerLocalJoyIdx", "PlayerLocalGamePadType" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Update_RESP), global::AxibugProtobuf.Protobuf_Room_Update_RESP.Parser, new[]{ "UpdateType", "RoomMiniInfo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Screnn_Frame), global::AxibugProtobuf.Protobuf_Screnn_Frame.Parser, new[]{ "RoomID", "FrameID", "RawBitmap" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_SinglePlayerInputData), global::AxibugProtobuf.Protobuf_Room_SinglePlayerInputData.Parser, new[]{ "FrameID", "InputData" }, null, null, null, null), @@ -167,7 +177,7 @@ namespace AxibugProtobuf { new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Leave_RESP), global::AxibugProtobuf.Protobuf_Room_Leave_RESP.Parser, new[]{ "RoomID" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_MyRoom_State_Change), global::AxibugProtobuf.Protobuf_Room_MyRoom_State_Change.Parser, new[]{ "RoomMiniInfo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Change_PlaySlotWithJoy), global::AxibugProtobuf.Protobuf_Room_Change_PlaySlotWithJoy.Parser, new[]{ "SlotWithJoy" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_PlaySlotIdxWithJoyIdx), global::AxibugProtobuf.Protobuf_PlaySlotIdxWithJoyIdx.Parser, new[]{ "PlayerSlotIdx", "PlayerLocalJoyIdx" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_PlaySlotIdxWithJoyIdx), global::AxibugProtobuf.Protobuf_PlaySlotIdxWithJoyIdx.Parser, new[]{ "PlayerSlotIdx", "PlayerLocalJoyIdx", "PlayerLocalGamePadType" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_Change_PlaySlotWithJoy_RESP), global::AxibugProtobuf.Protobuf_Room_Change_PlaySlotWithJoy_RESP.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_WaitStep_RESP), global::AxibugProtobuf.Protobuf_Room_WaitStep_RESP.Parser, new[]{ "WaitStep", "LoadStateRaw" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Room_HostPlayer_UpdateStateRaw), global::AxibugProtobuf.Protobuf_Room_HostPlayer_UpdateStateRaw.Parser, new[]{ "LoadStateRaw" }, null, null, null, null), @@ -375,6 +385,32 @@ namespace AxibugProtobuf { [pbr::OriginalName("Nintendo3DS")] Nintendo3Ds = 10, } + public enum GamePadType { + /// + ///键盘 + /// + [pbr::OriginalName("Keyboard")] Keyboard = 0, + /// + ///通用手柄 + /// + [pbr::OriginalName("GlobalGamePad")] GlobalGamePad = 1, + /// + ///触屏 + /// + [pbr::OriginalName("TouchPanel")] TouchPanel = 2, + [pbr::OriginalName("DS3Control")] Ds3Control = 3, + [pbr::OriginalName("DS4Control")] Ds4Control = 4, + [pbr::OriginalName("DS5Control")] Ds5Control = 5, + [pbr::OriginalName("SwitchProControl")] SwitchProControl = 6, + [pbr::OriginalName("SwitchJoyCon")] SwitchJoyCon = 7, + [pbr::OriginalName("XBOX360Control")] Xbox360Control = 8, + [pbr::OriginalName("XBOXONEControl")] Xboxonecontrol = 9, + [pbr::OriginalName("PSVitaControl")] PsvitaControl = 10, + [pbr::OriginalName("WiiUPadControl")] WiiUpadControl = 11, + [pbr::OriginalName("WiiRemoteControl")] WiiRemoteControl = 12, + [pbr::OriginalName("Nintendo3DSControl")] Nintendo3Dscontrol = 13, + } + public enum PlatformType { [pbr::OriginalName("All")] All = 0, [pbr::OriginalName("Nes")] Nes = 1, @@ -4586,7 +4622,9 @@ namespace AxibugProtobuf { public Protobuf_Room_GamePlaySlot(Protobuf_Room_GamePlaySlot other) : this() { playerUID_ = other.playerUID_; playerNickName_ = other.playerNickName_; + deviceType_ = other.deviceType_; playerLocalJoyIdx_ = other.playerLocalJoyIdx_; + playerLocalGamePadType_ = other.playerLocalGamePadType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -4623,8 +4661,22 @@ namespace AxibugProtobuf { } } + /// Field number for the "deviceType" field. + public const int DeviceTypeFieldNumber = 3; + private global::AxibugProtobuf.DeviceType deviceType_ = global::AxibugProtobuf.DeviceType.Default; + /// + ///用户设备类型 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.DeviceType DeviceType { + get { return deviceType_; } + set { + deviceType_ = value; + } + } + /// Field number for the "PlayerLocalJoyIdx" field. - public const int PlayerLocalJoyIdxFieldNumber = 3; + public const int PlayerLocalJoyIdxFieldNumber = 4; private int playerLocalJoyIdx_; /// ///客户端JoyIdx @@ -4637,6 +4689,20 @@ namespace AxibugProtobuf { } } + /// Field number for the "PlayerLocalGamePadType" field. + public const int PlayerLocalGamePadTypeFieldNumber = 5; + private global::AxibugProtobuf.GamePadType playerLocalGamePadType_ = global::AxibugProtobuf.GamePadType.Keyboard; + /// + ///客户端手柄类型 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.GamePadType PlayerLocalGamePadType { + get { return playerLocalGamePadType_; } + set { + playerLocalGamePadType_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Protobuf_Room_GamePlaySlot); @@ -4652,7 +4718,9 @@ namespace AxibugProtobuf { } if (PlayerUID != other.PlayerUID) return false; if (PlayerNickName != other.PlayerNickName) return false; + if (DeviceType != other.DeviceType) return false; if (PlayerLocalJoyIdx != other.PlayerLocalJoyIdx) return false; + if (PlayerLocalGamePadType != other.PlayerLocalGamePadType) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4661,7 +4729,9 @@ namespace AxibugProtobuf { int hash = 1; if (PlayerUID != 0L) hash ^= PlayerUID.GetHashCode(); if (PlayerNickName.Length != 0) hash ^= PlayerNickName.GetHashCode(); + if (DeviceType != global::AxibugProtobuf.DeviceType.Default) hash ^= DeviceType.GetHashCode(); if (PlayerLocalJoyIdx != 0) hash ^= PlayerLocalJoyIdx.GetHashCode(); + if (PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) hash ^= PlayerLocalGamePadType.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4686,10 +4756,18 @@ namespace AxibugProtobuf { output.WriteRawTag(18); output.WriteString(PlayerNickName); } - if (PlayerLocalJoyIdx != 0) { + if (DeviceType != global::AxibugProtobuf.DeviceType.Default) { output.WriteRawTag(24); + output.WriteEnum((int) DeviceType); + } + if (PlayerLocalJoyIdx != 0) { + output.WriteRawTag(32); output.WriteInt32(PlayerLocalJoyIdx); } + if (PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) { + output.WriteRawTag(40); + output.WriteEnum((int) PlayerLocalGamePadType); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4707,10 +4785,18 @@ namespace AxibugProtobuf { output.WriteRawTag(18); output.WriteString(PlayerNickName); } - if (PlayerLocalJoyIdx != 0) { + if (DeviceType != global::AxibugProtobuf.DeviceType.Default) { output.WriteRawTag(24); + output.WriteEnum((int) DeviceType); + } + if (PlayerLocalJoyIdx != 0) { + output.WriteRawTag(32); output.WriteInt32(PlayerLocalJoyIdx); } + if (PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) { + output.WriteRawTag(40); + output.WriteEnum((int) PlayerLocalGamePadType); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -4726,9 +4812,15 @@ namespace AxibugProtobuf { if (PlayerNickName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PlayerNickName); } + if (DeviceType != global::AxibugProtobuf.DeviceType.Default) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DeviceType); + } if (PlayerLocalJoyIdx != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayerLocalJoyIdx); } + if (PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlayerLocalGamePadType); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -4746,9 +4838,15 @@ namespace AxibugProtobuf { if (other.PlayerNickName.Length != 0) { PlayerNickName = other.PlayerNickName; } + if (other.DeviceType != global::AxibugProtobuf.DeviceType.Default) { + DeviceType = other.DeviceType; + } if (other.PlayerLocalJoyIdx != 0) { PlayerLocalJoyIdx = other.PlayerLocalJoyIdx; } + if (other.PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) { + PlayerLocalGamePadType = other.PlayerLocalGamePadType; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4772,9 +4870,17 @@ namespace AxibugProtobuf { break; } case 24: { + DeviceType = (global::AxibugProtobuf.DeviceType) input.ReadEnum(); + break; + } + case 32: { PlayerLocalJoyIdx = input.ReadInt32(); break; } + case 40: { + PlayerLocalGamePadType = (global::AxibugProtobuf.GamePadType) input.ReadEnum(); + break; + } } } #endif @@ -4798,9 +4904,17 @@ namespace AxibugProtobuf { break; } case 24: { + DeviceType = (global::AxibugProtobuf.DeviceType) input.ReadEnum(); + break; + } + case 32: { PlayerLocalJoyIdx = input.ReadInt32(); break; } + case 40: { + PlayerLocalGamePadType = (global::AxibugProtobuf.GamePadType) input.ReadEnum(); + break; + } } } } @@ -7270,6 +7384,7 @@ namespace AxibugProtobuf { public Protobuf_PlaySlotIdxWithJoyIdx(Protobuf_PlaySlotIdxWithJoyIdx other) : this() { playerSlotIdx_ = other.playerSlotIdx_; playerLocalJoyIdx_ = other.playerLocalJoyIdx_; + playerLocalGamePadType_ = other.playerLocalGamePadType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -7306,6 +7421,20 @@ namespace AxibugProtobuf { } } + /// Field number for the "PlayerLocalGamePadType" field. + public const int PlayerLocalGamePadTypeFieldNumber = 3; + private global::AxibugProtobuf.GamePadType playerLocalGamePadType_ = global::AxibugProtobuf.GamePadType.Keyboard; + /// + ///客户端手柄类型 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.GamePadType PlayerLocalGamePadType { + get { return playerLocalGamePadType_; } + set { + playerLocalGamePadType_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as Protobuf_PlaySlotIdxWithJoyIdx); @@ -7321,6 +7450,7 @@ namespace AxibugProtobuf { } if (PlayerSlotIdx != other.PlayerSlotIdx) return false; if (PlayerLocalJoyIdx != other.PlayerLocalJoyIdx) return false; + if (PlayerLocalGamePadType != other.PlayerLocalGamePadType) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7329,6 +7459,7 @@ namespace AxibugProtobuf { int hash = 1; if (PlayerSlotIdx != 0) hash ^= PlayerSlotIdx.GetHashCode(); if (PlayerLocalJoyIdx != 0) hash ^= PlayerLocalJoyIdx.GetHashCode(); + if (PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) hash ^= PlayerLocalGamePadType.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7353,6 +7484,10 @@ namespace AxibugProtobuf { output.WriteRawTag(16); output.WriteInt32(PlayerLocalJoyIdx); } + if (PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) { + output.WriteRawTag(24); + output.WriteEnum((int) PlayerLocalGamePadType); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7370,6 +7505,10 @@ namespace AxibugProtobuf { output.WriteRawTag(16); output.WriteInt32(PlayerLocalJoyIdx); } + if (PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) { + output.WriteRawTag(24); + output.WriteEnum((int) PlayerLocalGamePadType); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7385,6 +7524,9 @@ namespace AxibugProtobuf { if (PlayerLocalJoyIdx != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayerLocalJoyIdx); } + if (PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlayerLocalGamePadType); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7402,6 +7544,9 @@ namespace AxibugProtobuf { if (other.PlayerLocalJoyIdx != 0) { PlayerLocalJoyIdx = other.PlayerLocalJoyIdx; } + if (other.PlayerLocalGamePadType != global::AxibugProtobuf.GamePadType.Keyboard) { + PlayerLocalGamePadType = other.PlayerLocalGamePadType; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7424,6 +7569,10 @@ namespace AxibugProtobuf { PlayerLocalJoyIdx = input.ReadInt32(); break; } + case 24: { + PlayerLocalGamePadType = (global::AxibugProtobuf.GamePadType) input.ReadEnum(); + break; + } } } #endif @@ -7446,6 +7595,10 @@ namespace AxibugProtobuf { PlayerLocalJoyIdx = input.ReadInt32(); break; } + case 24: { + PlayerLocalGamePadType = (global::AxibugProtobuf.GamePadType) input.ReadEnum(); + break; + } } } } diff --git a/ProtobufCore/proto/protobuf_AxibugEmuOnline.proto b/ProtobufCore/proto/protobuf_AxibugEmuOnline.proto index 9d66bb9f..b7df5bdf 100644 --- a/ProtobufCore/proto/protobuf_AxibugEmuOnline.proto +++ b/ProtobufCore/proto/protobuf_AxibugEmuOnline.proto @@ -105,6 +105,24 @@ enum DeviceType Nintendo3DS = 10; } +enum GamePadType +{ + Keyboard = 0;//键盘 + GlobalGamePad = 1;//通用手柄 + TouchPanel = 2;//触屏 + DS3Control = 3; + DS4Control = 4; + DS5Control = 5; + SwitchProControl = 6; + SwitchJoyCon = 7; + XBOX360Control = 8; + XBOXONEControl = 9; + PSVitaControl = 10; + WiiUPadControl = 11; + WiiRemoteControl = 12; + Nintendo3DSControl = 13; +} + enum PlatformType { All = 0; @@ -277,7 +295,9 @@ message Protobuf_Room_GamePlaySlot { int64 Player_UID = 1;//玩家 UID string Player_NickName = 2;//玩家 昵称 - int32 PlayerLocalJoyIdx = 3;//客户端JoyIdx + DeviceType deviceType = 3;//用户设备类型 + int32 PlayerLocalJoyIdx = 4;//客户端JoyIdx + GamePadType PlayerLocalGamePadType = 5;//客户端手柄类型 } message Protobuf_Room_Update_RESP @@ -352,6 +372,7 @@ message Protobuf_PlaySlotIdxWithJoyIdx { int32 PlayerSlotIdx = 1;//P1~P4编号 int32 PlayerLocalJoyIdx = 2;//客户端Joy编号 + GamePadType PlayerLocalGamePadType = 3;//客户端手柄类型 } message Protobuf_Room_Change_PlaySlotWithJoy_RESP