You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
321 lines
5.5 KiB
321 lines
5.5 KiB
3 years ago
|
syntax = "proto3";
|
||
|
package ET;
|
||
|
|
||
|
//ResponseType ObjectQueryResponse
|
||
|
message ObjectQueryRequest // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int64 Key = 1;
|
||
|
int64 InstanceId = 2;
|
||
|
}
|
||
|
|
||
|
//ResponseType A2M_Reload
|
||
|
message M2A_Reload // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
}
|
||
|
|
||
|
message A2M_Reload // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
}
|
||
|
|
||
|
//ResponseType G2G_LockResponse
|
||
|
message G2G_LockRequest // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int64 Id = 1;
|
||
|
string Address = 2;
|
||
|
}
|
||
|
|
||
|
message G2G_LockResponse // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
}
|
||
|
|
||
|
//ResponseType G2G_LockReleaseResponse
|
||
|
message G2G_LockReleaseRequest // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int64 Id = 1;
|
||
|
string Address = 2;
|
||
|
}
|
||
|
|
||
|
message G2G_LockReleaseResponse // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
}
|
||
|
|
||
|
//ResponseType ObjectAddResponse
|
||
|
message ObjectAddRequest // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int64 Key = 1;
|
||
|
int64 InstanceId = 2;
|
||
|
}
|
||
|
|
||
|
message ObjectAddResponse // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
}
|
||
|
|
||
|
//ResponseType ObjectLockResponse
|
||
|
message ObjectLockRequest // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int64 Key = 1;
|
||
|
int64 InstanceId = 2;
|
||
|
int32 Time = 3;
|
||
|
}
|
||
|
message ObjectLockResponse // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
}
|
||
|
|
||
|
//ResponseType ObjectUnLockResponse
|
||
|
message ObjectUnLockRequest // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int64 Key = 1;
|
||
|
int64 OldInstanceId = 2;
|
||
|
int64 InstanceId = 3;
|
||
|
}
|
||
|
message ObjectUnLockResponse // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
}
|
||
|
|
||
|
//ResponseType ObjectRemoveResponse
|
||
|
message ObjectRemoveRequest // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int64 Key = 1;
|
||
|
}
|
||
|
message ObjectRemoveResponse // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
}
|
||
|
|
||
|
//ResponseType ObjectGetResponse
|
||
|
message ObjectGetRequest // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int64 Key = 1;
|
||
|
}
|
||
|
message ObjectGetResponse // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
|
||
|
int64 InstanceId = 1;
|
||
|
}
|
||
|
|
||
|
//ResponseType G2R_GetLoginKey
|
||
|
message R2G_GetLoginKey // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
string Account = 1;
|
||
|
}
|
||
|
|
||
|
message G2R_GetLoginKey // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
|
||
|
int64 Key = 1;
|
||
|
int64 GateId = 2;
|
||
|
}
|
||
|
|
||
|
message M2M_UnitTransferResponse // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 1;
|
||
|
int32 Error = 2;
|
||
|
string Message = 3;
|
||
|
int64 NewInstanceId = 4;
|
||
|
}
|
||
|
|
||
|
message G2M_SessionDisconnect // IActorLocationMessage
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
}
|
||
|
|
||
|
//ResponseType L2A_LoginAccountResponse
|
||
|
message A2L_LoginAccountRequest // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int64 AccountId = 1;
|
||
|
}
|
||
|
|
||
|
message L2A_LoginAccountResponse // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 1;
|
||
|
int32 Error = 2;
|
||
|
string Message = 3;
|
||
|
}
|
||
|
|
||
|
//ResponseType G2L_DisconnectGateUnit
|
||
|
message L2G_DisconnectGateUnit // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int64 AccountId = 1;
|
||
|
}
|
||
|
|
||
|
message G2L_DisconnectGateUnit // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 1;
|
||
|
int32 Error = 2;
|
||
|
string Message = 3;
|
||
|
}
|
||
|
|
||
|
//ResponseType R2A_GetRealmKey
|
||
|
message A2R_GetRealmKey // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int64 AccountId = 1;
|
||
|
}
|
||
|
|
||
|
message R2A_GetRealmKey // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
|
||
|
string RealmKey = 1;
|
||
|
}
|
||
|
|
||
|
//ResponseType G2R_GetLoginGateKey
|
||
|
message R2G_GetLoginGateKey // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int64 AccountId = 1;
|
||
|
}
|
||
|
|
||
|
message G2R_GetLoginGateKey // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
|
||
|
string GateSessionKey = 1;
|
||
|
}
|
||
|
|
||
|
//ResponseType L2G_AddLoginRecord
|
||
|
message G2L_AddLoginRecord // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int64 AccountId = 1;
|
||
|
int32 ServerId = 2;
|
||
|
}
|
||
|
|
||
|
message L2G_AddLoginRecord // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
}
|
||
|
|
||
|
//ResponseType M2G_RequestEnterGameState
|
||
|
message G2M_RequestEnterGameState // IActorLocationRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
}
|
||
|
|
||
|
message M2G_RequestEnterGameState // IActorLocationResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
}
|
||
|
|
||
|
//ResponseType M2G_RequestExitGame
|
||
|
message G2M_RequestExitGame // IActorLocationRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
}
|
||
|
|
||
|
message M2G_RequestExitGame // IActorLocationResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
}
|
||
|
|
||
|
//ResponseType L2G_RemoveLoginRecord
|
||
|
message G2L_RemoveLoginRecord // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int64 AccountId = 1;
|
||
|
int32 ServerId = 2;
|
||
|
}
|
||
|
|
||
|
message L2G_RemoveLoginRecord // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
}
|
||
|
|
||
|
//--------------玩家缓存相关--------------
|
||
|
|
||
|
//增加或者更新Unit缓存
|
||
|
//ResponseType UnitCache2Other_AddOrUpdateUnit
|
||
|
message Other2UnitCache_AddOrUpdateUnit // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
|
||
|
int64 UnitId = 1; // 需要缓存的UnitId
|
||
|
repeated string EntityTypes = 2; //实体类型
|
||
|
repeated bytes EntityBytes = 3; //实体序列化后的bytes
|
||
|
}
|
||
|
|
||
|
message UnitCache2Other_AddOrUpdateUnit // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
}
|
||
|
|
||
|
//获取Unit缓存, 因为返回和Entity实体,定义在MongoMessage.proto中
|
||
|
//ResponseType UnitCache2Other_GetUnit
|
||
|
message Other2UnitCache_GetUnit // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
|
||
|
int64 UnitId = 1;
|
||
|
repeated string ComponentNameList = 2; //需要获取的组件名
|
||
|
}
|
||
|
|
||
|
//删除Unit缓存
|
||
|
//ResponseType UnitCache2Other_DeleteUnit
|
||
|
message Other2UnitCache_DeleteUnit // IActorRequest
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
|
||
|
int64 UnitId = 1;
|
||
|
}
|
||
|
|
||
|
message UnitCache2Other_DeleteUnit // IActorResponse
|
||
|
{
|
||
|
int32 RpcId = 90;
|
||
|
int32 Error = 91;
|
||
|
string Message = 92;
|
||
|
}
|
||
|
|
||
|
|