From 942e4c92934fe2c4ea4b88a853ec7bfb7442033b Mon Sep 17 00:00:00 2001 From: tanghai Date: Fri, 26 Oct 2018 10:17:27 +0800 Subject: [PATCH] =?UTF-8?q?InnerMessage.proto=E5=8A=A0=E4=B8=8A=E4=B8=A4?= =?UTF-8?q?=E8=A1=8C=EF=BC=8C=E5=90=A6=E5=88=99=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E4=B8=8D=E6=AD=A3=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Proto/InnerMessage.proto | 498 ++++++++++++++++++++------------------- 1 file changed, 250 insertions(+), 248 deletions(-) diff --git a/Proto/InnerMessage.proto b/Proto/InnerMessage.proto index 5a83ebb6..e7ddbe30 100644 --- a/Proto/InnerMessage.proto +++ b/Proto/InnerMessage.proto @@ -1,249 +1,251 @@ - /// - /// 传送unit - /// - message M2M_TrasferUnitRequest // IRequest - { - int32 RpcId = 90; - Unit Unit = 1; - } - - message M2M_TrasferUnitResponse // IResponse - { - int32 RpcId = 90; - int32 Error = 91; - string Message = 92; - - int64 InstanceId = 1; - } - - message M2A_Reload // IRequest - { - int32 RpcId = 90; - } - - message A2M_Reload // IResponse - { - int32 RpcId = 90; - int32 Error = 91; - string Message = 92; - } - - message G2G_LockRequest // IRequest - { - int32 RpcId = 90; - int64 Id = 1; - string Address = 2; - } - - message G2G_LockResponse // IResponse - { - int32 RpcId = 90; - int32 Error = 91; - string Message = 92; - } - - message G2G_LockReleaseRequest // IRequest - { - int32 RpcId = 90; - int64 Id = 1; - string Address = 2; - } - - message G2G_LockReleaseResponse // IResponse - { - int32 RpcId = 90; - int32 Error = 91; - string Message = 92; - } - - message DBSaveRequest // IRequest - { - int32 RpcId = 90; - - string CollectionName = 1; - ComponentWithId Component = 2; - } - - - message DBSaveBatchResponse // IResponse - { - int32 RpcId = 90; - int32 Error = 91; - string Message = 92; - } - - message DBSaveBatchRequest // IRequest - { - int32 RpcId = 90; - - string CollectionName = 1; - repeated ComponentWithId Components = 2; - } - - message DBSaveResponse // IResponse - { - int32 RpcId = 90; - int32 Error = 91; - string Message = 92; - } - - message DBQueryRequest // IRequest - { - int32 RpcId = 90; - int64 Id = 1; - string CollectionName = 2; - } - - message DBQueryResponse // IResponse - { - int32 RpcId = 90; - int32 Error = 91; - string Message = 92; - - ComponentWithId Component = 1; - } - - message DBQueryBatchRequest // IRequest - { - int32 RpcId = 90; - string CollectionName = 1; - repeated int64 IdList = 2; - } - - message DBQueryBatchResponse // IResponse - { - int32 RpcId = 90; - int32 Error = 91; - string Message = 92; - - repeated ComponentWithId Components = 1; - } - - message DBQueryJsonRequest // IRequest - { - int32 RpcId = 90; - string CollectionName = 1; - string Json = 2; - } - - message DBQueryJsonResponse // IResponse - { - int32 RpcId = 90; - int32 Error = 91; - string Message = 92; - - repeated ComponentWithId Components = 1; - } - - message ObjectAddRequest // IRequest - { - int32 RpcId = 90; - int64 Key = 1; - int64 InstanceId = 2; - } - - message ObjectAddResponse // IResponse - { - int32 RpcId = 90; - int32 Error = 91; - string Message = 92; - } - - message ObjectRemoveRequest // IRequest - { - int32 RpcId = 90; - int64 Key = 1; - } - - message ObjectRemoveResponse // IResponse - { - int32 RpcId = 90; - int32 Error = 91; - string Message = 92; - } - - message ObjectLockRequest // IRequest - { - int32 RpcId = 90; - int64 Key = 1; - int64 InstanceId = 2; - int Time = 3; - } - - message ObjectLockResponse // IResponse - { - int32 RpcId = 90; - int32 Error = 91; - string Message = 92; - } - - message ObjectUnLockRequest // IRequest - { - int32 RpcId = 90; - int64 Key = 1; - int64 OldInstanceId = 2; - int64 InstanceId = 3; - } - - message ObjectUnLockResponse // IResponse - { - int32 RpcId = 90; - int32 Error = 91; - string Message = 92; - } - - message ObjectGetRequest // IRequest - { - int32 RpcId = 90; - int64 Key = 1; - } - - message ObjectGetResponse // IResponse - { - int32 RpcId = 90; - int32 Error = 91; - string Message = 92; - - int64 InstanceId = 1; - } - - message R2G_GetLoginKey // IRequest - { - int32 RpcId = 90; - string Account = 1; - } - - message G2R_GetLoginKey // IResponse - { - int32 RpcId = 90; - int32 Error = 91; - string Message = 92; - - int64 Key = 1; - } - - message G2M_CreateUnit // IRequest - { - int32 RpcId = 90; - int64 PlayerId = 1; - int64 GateSessionId = 2; - } - - message M2G_CreateUnit // IResponse - { - int32 RpcId = 90; - int32 Error = 91; - string Message = 92; - - // 自己的unit id - int64 UnitId = 1; - // 所有的unit - repeated UnitInfo Units = 2; - } - - message G2M_SessionDisconnect // IActorLocationMessage - { - int32 RpcId = 90; - long ActorId = 94; - } +syntax = "proto3"; +package ETModel; + +/// +/// 传送unit +/// +message M2M_TrasferUnitRequest // IRequest +{ + int32 RpcId = 90; + Unit Unit = 1; +} + +message M2M_TrasferUnitResponse // IResponse +{ + int32 RpcId = 90; + int32 Error = 91; + string Message = 92; + + int64 InstanceId = 1; +} + +message M2A_Reload // IRequest +{ + int32 RpcId = 90; +} + +message A2M_Reload // IResponse +{ + int32 RpcId = 90; + int32 Error = 91; + string Message = 92; +} + +message G2G_LockRequest // IRequest +{ + int32 RpcId = 90; + int64 Id = 1; + string Address = 2; +} + +message G2G_LockResponse // IResponse +{ + int32 RpcId = 90; + int32 Error = 91; + string Message = 92; +} + +message G2G_LockReleaseRequest // IRequest +{ + int32 RpcId = 90; + int64 Id = 1; + string Address = 2; +} + +message G2G_LockReleaseResponse // IResponse +{ + int32 RpcId = 90; + int32 Error = 91; + string Message = 92; +} + +message DBSaveRequest // IRequest +{ + int32 RpcId = 90; + + string CollectionName = 1; + ComponentWithId Component = 2; +} + + +message DBSaveBatchResponse // IResponse +{ + int32 RpcId = 90; + int32 Error = 91; + string Message = 92; +} + +message DBSaveBatchRequest // IRequest +{ + int32 RpcId = 90; + + string CollectionName = 1; + repeated ComponentWithId Components = 2; +} + +message DBSaveResponse // IResponse +{ + int32 RpcId = 90; + int32 Error = 91; + string Message = 92; +} + +message DBQueryRequest // IRequest +{ + int32 RpcId = 90; + int64 Id = 1; + string CollectionName = 2; +} + +message DBQueryResponse // IResponse +{ + int32 RpcId = 90; + int32 Error = 91; + string Message = 92; + + ComponentWithId Component = 1; +} + +message DBQueryBatchRequest // IRequest +{ + int32 RpcId = 90; + string CollectionName = 1; + repeated int64 IdList = 2; +} + +message DBQueryBatchResponse // IResponse +{ + int32 RpcId = 90; + int32 Error = 91; + string Message = 92; + + repeated ComponentWithId Components = 1; +} + +message DBQueryJsonRequest // IRequest +{ + int32 RpcId = 90; + string CollectionName = 1; + string Json = 2; +} + +message DBQueryJsonResponse // IResponse +{ + int32 RpcId = 90; + int32 Error = 91; + string Message = 92; + + repeated ComponentWithId Components = 1; +} + +message ObjectAddRequest // IRequest +{ + int32 RpcId = 90; + int64 Key = 1; + int64 InstanceId = 2; +} + +message ObjectAddResponse // IResponse +{ + int32 RpcId = 90; + int32 Error = 91; + string Message = 92; +} + +message ObjectRemoveRequest // IRequest +{ + int32 RpcId = 90; + int64 Key = 1; +} + +message ObjectRemoveResponse // IResponse +{ + int32 RpcId = 90; + int32 Error = 91; + string Message = 92; +} + +message ObjectLockRequest // IRequest +{ + int32 RpcId = 90; + int64 Key = 1; + int64 InstanceId = 2; + int32 Time = 3; +} + +message ObjectLockResponse // IResponse +{ + int32 RpcId = 90; + int32 Error = 91; + string Message = 92; +} + +message ObjectUnLockRequest // IRequest +{ + int32 RpcId = 90; + int64 Key = 1; + int64 OldInstanceId = 2; + int64 InstanceId = 3; +} + +message ObjectUnLockResponse // IResponse +{ + int32 RpcId = 90; + int32 Error = 91; + string Message = 92; +} + +message ObjectGetRequest // IRequest +{ + int32 RpcId = 90; + int64 Key = 1; +} + +message ObjectGetResponse // IResponse +{ + int32 RpcId = 90; + int32 Error = 91; + string Message = 92; + + int64 InstanceId = 1; +} + +message R2G_GetLoginKey // IRequest +{ + int32 RpcId = 90; + string Account = 1; +} + +message G2R_GetLoginKey // IResponse +{ + int32 RpcId = 90; + int32 Error = 91; + string Message = 92; + + int64 Key = 1; +} + +message G2M_CreateUnit // IRequest +{ + int32 RpcId = 90; + int64 PlayerId = 1; + int64 GateSessionId = 2; +} + +message M2G_CreateUnit // IResponse +{ + int32 RpcId = 90; + int32 Error = 91; + string Message = 92; + + // 自己的unit id + int64 UnitId = 1; + // 所有的unit + repeated UnitInfo Units = 2; +} + +message G2M_SessionDisconnect // IActorLocationMessage +{ + int32 RpcId = 90; + int64 ActorId = 94; } \ No newline at end of file -- GitLab