| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- syntax = "proto3";
- package ET;
- //ResponseType G2C_Match
- message C2G_Match // IRequest
- {
- int32 RpcId = 1;
- }
- message G2C_Match // IResponse
- {
- int32 RpcId = 1;
- int32 Error = 2;
- string Message = 3;
- }
- // 匹配成功,通知客户端切换场景
- message Match2G_NotifyMatchSuccess // IActorLocationMessage
- {
- int32 RpcId = 1;
- // 房间的instanceId
- int64 InstanceId = 2;
- }
- // 客户端通知房间切换场景完成
- message C2Room_ChangeSceneFinish // IActorRoom
- {
- int64 PlayerId = 1;
- }
- message LockStepUnitInfo
- {
- int64 PlayerId = 1;
- TrueSync.TSVector Position = 2;
- TrueSync.TSQuaternion Rotation = 3;
- }
- // 房间通知客户端进入战斗
- message Room2C_Start // IActorMessage
- {
- int64 StartTime = 1;
- repeated LockStepUnitInfo UnitInfo = 2;
- }
- message FrameMessage // IActorMessage
- {
- int32 Frame = 1;
- int64 PlayerId = 2;
- LSInput Input = 3;
- }
- message OneFrameInputs // IActorMessage
- {
- map<int64, LSInput> Inputs = 2;
- }
- message Room2C_AdjustUpdateTime // IActorMessage
- {
- int32 DiffTime = 1;
- }
- message C2Room_CheckHash // IActorRoom
- {
- int64 PlayerId = 1;
- int32 Frame = 2;
- int64 Hash = 3;
- }
- message Room2C_CheckHashFail // IActorMessage
- {
- int32 Frame = 1;
- bytes LSWorldBytes = 2;
- }
- message G2C_Reconnect // IActorMessage
- {
- int64 StartTime = 1;
- repeated LockStepUnitInfo UnitInfos = 2;
- int32 Frame = 3;
- }
|