MultiDup.proto 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. syntax = "proto3";
  2. // 多人副本
  3. package MultiDup;
  4. //
  5. // 进入大厅(注册下自己的uid)
  6. message CS_MD_EnterLobby{
  7. int32 Zoneid = 1;
  8. string Uid = 2;
  9. }
  10. // 多人副本, 创建房间
  11. message CS_MD_CreateRoom {
  12. int32 Zoneid=1; // zoneid
  13. string Uid=2; // 玩家id
  14. int32 Mapid=3; // 地图id
  15. }
  16. // 多人副本, 申请房间(列表)
  17. message CS_MD_GetRoomList {
  18. int32 Zoneid=1;
  19. string Uid =2;
  20. }
  21. // 多人副本, 加入房间
  22. message CS_MD_EnterRoom {
  23. int32 Zoneid=1;
  24. string Uid =2;
  25. int32 RoomId=3; // 房间id
  26. }
  27. // 多人副本, 离开房间
  28. message CS_MD_LeaveRoom {
  29. int32 Zoneid=1;
  30. string Uid =2;
  31. //int32 RoomId=3; // 房间id (理论上已经处于房间中不需要此字段)
  32. }
  33. // 多人副本, 开始游戏(创建者)
  34. message CS_MD_BeginDup {
  35. int32 Zoneid=1;
  36. string Uid =2;
  37. //int32 RoomId=3; // 房间id (理论上已经处于房间中不需要此字段)
  38. }
  39. //
  40. // 加入房间成功
  41. message SC_MD_EnterLobby{
  42. }
  43. // 多人副本, 创建房间
  44. message SC_MD_CreateRoom {
  45. int32 Zoneid=1;
  46. string Uid =2;
  47. int32 Mapid=3;
  48. int32 RoomId=4; // 房间id (服务端分配)
  49. }
  50. // 多人副本, 申请房间(列表)
  51. message SC_MD_GetRoomList {
  52. message RoomInfo{
  53. int32 RoomId=1;
  54. int32 Mapid=2;
  55. repeated string PlayerUids=3; //??
  56. string Battleserver =4;
  57. int32 BattleServerPort =5;
  58. }
  59. repeated RoomInfo RoomInfos=1;
  60. }
  61. // 多人副本, 加入房间
  62. message SC_MD_EnterRoom {
  63. int32 Zoneid=1;
  64. string Uid =2; // (新进id)
  65. int32 Mapid=3;
  66. string Ip=4; // 战斗服务器ip
  67. int32 Port=5; // 战斗服务器端口
  68. repeated string PlayerUids=6;
  69. }
  70. // 多人副本, 离开房间
  71. message SC_MD_LeaveRoom {
  72. int32 Zoneid=1;
  73. string Uid =2; // (离开id)
  74. }
  75. // 多人副本, 开始游戏(创建者)
  76. message SC_MD_BeginDup {
  77. }
  78. // 多人副本在战斗服创建房间
  79. message SS_CreateBattleServer{
  80. int32 RoomId=1;
  81. repeated string PlayerUids=2;
  82. }
  83. // 多人副本,创建战斗房间OK
  84. message SS_CreateBattleServerOK{
  85. }