OuterMessage.proto 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. syntax = "proto3";
  2. package ETModel;
  3. message C2M_TestRequest // IActorLocationRequest
  4. {
  5. int32 RpcId = 90;
  6. int64 ActorId = 93;
  7. string request = 1;
  8. }
  9. message M2C_TestResponse // IActorLocationResponse
  10. {
  11. int32 RpcId = 90;
  12. int32 Error = 91;
  13. string Message = 92;
  14. string response = 1;
  15. }
  16. message Actor_TransferRequest // IActorLocationRequest
  17. {
  18. int32 RpcId = 90;
  19. int64 ActorId = 93;
  20. int32 MapIndex = 1;
  21. }
  22. message Actor_TransferResponse // IActorLocationResponse
  23. {
  24. int32 RpcId = 90;
  25. int32 Error = 91;
  26. string Message = 92;
  27. }
  28. message C2G_EnterMap // IRequest
  29. {
  30. int32 RpcId = 90;
  31. }
  32. message G2C_EnterMap // IResponse
  33. {
  34. int32 RpcId = 90;
  35. int32 Error = 91;
  36. string Message = 92;
  37. // 自己的unit id
  38. int64 UnitId = 1;
  39. // 所有的unit
  40. repeated UnitInfo Units = 2;
  41. }
  42. message UnitInfo
  43. {
  44. int64 UnitId = 1;
  45. float X = 2;
  46. float Y = 3;
  47. float Z = 4;
  48. }
  49. message M2C_CreateUnits // IActorMessage
  50. {
  51. int32 RpcId = 90;
  52. int64 ActorId = 93;
  53. repeated UnitInfo Units = 1;
  54. }
  55. message Frame_ClickMap // IActorLocationMessage
  56. {
  57. int32 RpcId = 90;
  58. int64 ActorId = 93;
  59. int64 Id = 94;
  60. float X = 1;
  61. float Y = 2;
  62. float Z = 3;
  63. }
  64. message M2C_PathfindingResult // IActorMessage
  65. {
  66. int64 ActorId = 93;
  67. int64 Id = 1;
  68. float X = 2;
  69. float Y = 3;
  70. float Z = 4;
  71. repeated float Xs = 5;
  72. repeated float Ys = 6;
  73. repeated float Zs = 7;
  74. }
  75. message C2R_Ping // IRequest
  76. {
  77. int32 RpcId = 90;
  78. }
  79. message R2C_Ping // IResponse
  80. {
  81. int32 RpcId = 90;
  82. int32 Error = 91;
  83. string Message = 92;
  84. }
  85. message G2C_Test // IMessage
  86. {
  87. }
  88. message C2M_Reload // IRequest
  89. {
  90. int32 RpcId = 90;
  91. string Account = 1;
  92. string Password = 2;
  93. }
  94. message M2C_Reload // IResponse
  95. {
  96. int32 RpcId = 90;
  97. int32 Error = 91;
  98. string Message = 92;
  99. }