修改血战协议

master_huanxiang
wangyuan 2019-07-16 18:29:51 +08:00
parent 84567222a5
commit 8ad62ae897
3 changed files with 40 additions and 44 deletions

View File

@ -414,4 +414,43 @@ option optimize_for = SPEED;
optional string userName = 4;
optional TowerRankInfo towerRankInfo = 5;
}
message SceneInfo{
optional int32 roomId = 1;//
optional int32 mapId = 2; //id
repeated SceneActor SceneActor =3;//
repeated ActorEffectBufferInfo actorEffectBufferInfo =4;//buffer
}
message SceneActor{
optional int32 id=1; //id
optional int32 curPos = 2;//
optional int32 state = 3; // 1 0
optional int32 type =4 ;// 1 2 3 4 npc
optional Creature Creature = 6 ;//
}
message Creature{
repeated int32 path = 1; //
optional int32 speed =2;//
optional int32 maxHp =3; //
optional int32 curHp =4;//
optional int32 mineral = 5; //
optional int32 camp = 6; //
}
message ActorEffectBufferInfo{
optional int32 id = 1;//buffer id
optional int32 type = 2; //bufffer
optional int32 startTime =3; // buffer
optional int32 endTime =4;//buffer
optional int32 target = 5 ;// buffer id
optional int32 caster = 6;//
repeated int32 value = 7; // buffer
}
message SceneGetFullMsgResponse{
optional SceneInfo sceneInfo =1 ;//
}

View File

@ -41,14 +41,7 @@ import "CommonProto.proto";
message RoomMatchSuccessIndication{
optional int32 roomId = 1;
optional int32 type = 2; //type 1
optional int32 mapId =3;
//
repeated Cell mapList = 4;
//
repeated AgentInfo agentInfos = 5; //playerUid
//
optional Drop temporaryItems = 6;
optional SceneInfo sceneInfo =2; //
}
//

View File

@ -5,43 +5,7 @@ option optimize_for = SPEED;
import "CommonProto.proto";
message SceneInfo{
optional int32 mapId = 1; //id
repeated SceneActor SceneActor =2;//
repeated ActorEffectBufferInfo actorEffectBufferInfo =3;//buffer
}
message SceneActor{
optional int32 id=1; //id
optional int32 curPos = 2;//
optional int32 state = 3; // 1 0
optional int32 type =4 ;// 1 2 3 4 npc
optional Creature Creature = 6 ;//
}
message Creature{
repeated int32 path = 1; //
optional int32 speed =2;//
optional int32 maxHp =3; //
optional int32 curHp =4;//
optional int32 mineral = 5; //
optional int32 camp = 6; //
}
message ActorEffectBufferInfo{
optional int32 id = 1;//buffer id
optional int32 type = 2; //bufffer
optional int32 startTime =3; // buffer
optional int32 endTime =4;//buffer
optional int32 target = 5 ;// buffer id
optional int32 caster = 6;//
repeated int32 value = 7; // buffer
}
message SceneGetFullMsgResponse{
optional SceneInfo sceneInfo =1 ;//
}
//
message SceneCommandRequest{