OuterMessage.proto 1.8 KB

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