123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- syntax = "proto3";
- package ET;
- message HttpGetRouterResponse
- {
- repeated string Realms = 1;
- repeated string Routers = 2;
- }
- message RouterSync
- {
- uint32 ConnectId = 1;
- string Address = 2;
- }
- //ResponseType M2C_TestResponse
- message C2M_TestRequest // IActorLocationRequest
- {
- int32 RpcId = 1;
- string request = 2;
- }
- message M2C_TestResponse // IActorLocationResponse
- {
- int32 RpcId = 1;
- int32 Error = 2;
- string Message = 3;
- string response = 4;
- }
- //ResponseType Actor_TransferResponse
- message Actor_TransferRequest // IActorLocationRequest
- {
- int32 RpcId = 1;
- int32 MapIndex = 2;
- }
- message Actor_TransferResponse // IActorLocationResponse
- {
- int32 RpcId = 1;
- int32 Error = 2;
- string Message = 3;
- }
- //ResponseType G2C_EnterMap
- message C2G_EnterMap // IRequest
- {
- int32 RpcId = 1;
- }
- message G2C_EnterMap // IResponse
- {
- int32 RpcId = 1;
- int32 Error = 2;
- string Message = 3;
- // 自己unitId
- int64 MyId = 4;
- }
- message MoveInfo
- {
- repeated Unity.Mathematics.float3 Points = 1;
- Unity.Mathematics.quaternion Rotation = 2;
- int32 TurnSpeed = 3;
- }
- message IntKV
- {
- int32 Key = 1;
- int64 Value = 2;
- }
- message UnitInfo
- {
- int64 UnitId = 1;
- int32 ConfigId = 2;
- int32 Type = 3;
- Unity.Mathematics.float3 Position = 4;
- Unity.Mathematics.float3 Forward = 5;
- repeated IntKV KV = 6;
- MoveInfo MoveInfo = 7;
- }
- message M2C_CreateUnits // IActorMessage
- {
- repeated UnitInfo Units = 1;
- }
- message M2C_CreateMyUnit // IActorMessage
- {
- UnitInfo Unit = 1;
- }
- message M2C_StartSceneChange // IActorMessage
- {
- int64 SceneInstanceId = 1;
- string SceneName = 2;
- }
- message M2C_RemoveUnits // IActorMessage
- {
- repeated int64 Units = 2;
- }
- message C2M_PathfindingResult // IActorLocationMessage
- {
- int32 RpcId = 1;
- Unity.Mathematics.float3 Position = 2;
- }
- message C2M_Stop // IActorLocationMessage
- {
- int32 RpcId = 1;
- }
- message M2C_PathfindingResult // IActorMessage
- {
- int64 Id = 1;
- Unity.Mathematics.float3 Position = 2;
- repeated Unity.Mathematics.float3 Points = 3;
- }
- message M2C_Stop // IActorMessage
- {
- int32 Error = 1;
- int64 Id = 2;
- Unity.Mathematics.float3 Position = 3;
- Unity.Mathematics.quaternion Rotation = 4;
- }
- //ResponseType G2C_Ping
- message C2G_Ping // IRequest
- {
- int32 RpcId = 1;
- }
- message G2C_Ping // IResponse
- {
- int32 RpcId = 1;
- int32 Error = 2;
- string Message = 3;
- int64 Time = 4;
- }
- message G2C_Test // IMessage
- {
- }
- //ResponseType M2C_Reload
- message C2M_Reload // IRequest
- {
- int32 RpcId = 1;
- string Account = 2;
- string Password = 3;
- }
- message M2C_Reload // IResponse
- {
- int32 RpcId = 1;
- int32 Error = 2;
- string Message = 3;
- }
- //ResponseType R2C_Login
- message C2R_Login // IRequest
- {
- int32 RpcId = 1;
- string Account = 2; // 帐号
- string Password = 3; // 密码
- }
- message R2C_Login // IResponse
- {
- int32 RpcId = 1;
- int32 Error = 2;
- string Message = 3;
- string Address = 4;
- int64 Key = 5;
- int64 GateId = 6;
- }
- //ResponseType G2C_LoginGate
- message C2G_LoginGate // IRequest
- {
- int32 RpcId = 1;
- int64 Key = 2; // 帐号
- int64 GateId = 3;
- }
- message G2C_LoginGate // IResponse
- {
- int32 RpcId = 1;
- int32 Error = 2;
- string Message = 3;
- int64 PlayerId = 4;
- }
- message G2C_TestHotfixMessage // IMessage
- {
- string Info = 1;
- }
- //ResponseType M2C_TestRobotCase
- message C2M_TestRobotCase // IActorLocationRequest
- {
- int32 RpcId = 1;
- int32 N = 2;
- }
- message M2C_TestRobotCase // IActorLocationResponse
- {
- int32 RpcId = 1;
- int32 Error = 2;
- string Message = 3;
- int32 N = 4;
- }
- //ResponseType M2C_TransferMap
- message C2M_TransferMap // IActorLocationRequest
- {
- int32 RpcId = 1;
- }
- message M2C_TransferMap // IActorLocationResponse
- {
- int32 RpcId = 1;
- int32 Error = 2;
- string Message = 3;
- }
- //ResponseType G2C_Benchmark
- message C2G_Benchmark // IRequest
- {
- int32 RpcId = 1;
- }
- message G2C_Benchmark // IResponse
- {
- int32 RpcId = 1;
- int32 Error = 2;
- string Message = 3;
- }
|