miduo_protocol/protos/SceneFight.proto

46 lines
1.2 KiB
Protocol Buffer
Raw Normal View History

2020-11-19 20:35:16 +08:00
package rpc.protocols;
2019-07-16 14:54:48 +08:00
option optimize_for = SPEED;
import "CommonProto.proto";
//命令请求
message SceneCommandRequest{
optional int32 type =1; //指令类型 1表示行走
repeated int32 parm =2; //指令参数 若type为1 则参数为行走路径
}
2019-07-19 11:19:37 +08:00
//命令请求
message SceneCommandResponse{
optional int32 type =1; //指令类型 1表示行走
optional int32 result =2; //行为结果 1 成功 0失败
}
2019-07-16 14:54:48 +08:00
//广播场景里演员变换信息
message BroadMsgIndication{
repeated SceneActor SceneActor =1 ; // 演员信息变更
repeated ActorEffectBufferInfo ActorEffectBufferInfo =2;
repeated int32 removeBufferId =3; // 被删除的buffer
repeated int32 removeActorId = 4 ;//演员被移除
2019-09-02 14:28:46 +08:00
repeated int32 removePosMineralId=5; // 被删除的地图路径矿物信息
repeated PosMineral PosMineral = 6; //路径矿物信息变更
2019-09-03 13:44:20 +08:00
repeated SceneMsg sceneMsg = 7; // 场景消息
2019-08-30 10:42:12 +08:00
}
2019-09-03 17:12:11 +08:00
message SceneSimpleRankInfo{
optional int32 uid = 1 ;
optional int32 score = 2 ;//最终的分数
optional int32 updateScore = 3 ;//变化的分数
2019-09-03 20:23:00 +08:00
optional string head = 4; //头像
2019-09-03 19:34:46 +08:00
optional int32 headFrame=5;//头像框
optional int32 level= 6;//等级
2019-09-03 17:12:11 +08:00
}
2019-09-02 14:28:46 +08:00
2019-09-03 17:12:11 +08:00
message SceneEndIndication{
repeated SceneSimpleRankInfo sceneSimpleRankInfo = 1;
2019-07-16 14:54:48 +08:00
}