血战场景

master_huanxiang
wangyuan 2019-07-16 14:54:48 +08:00
parent 80e8e82111
commit 5d7bfba2e2
2 changed files with 69 additions and 0 deletions

View File

@ -352,6 +352,15 @@ enum MessageType{
SEND_CHAT_INFO_INDICATION = 11818; //
SEND_FRIEND_STATE_INDICATION = 11819; //
SCENE_MSG_UPDATE_INDICATION = 11820; //
SCENE_GET_FULL_MSG_REQUEST = 11821; //
SCENE_GET_FULL_MSG_RESPONSE = 11822;
SCENE_COMMAND_REQUEST = 11823; //
SCENE_COMMAND_RESPONSE = 11824;
// T 11900
TRIGGER_EVENT_REQUEST = 11900; //

View File

@ -0,0 +1,60 @@
package com.ljsd.jieling.protocols;
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{
optional int32 type =1; // 1
repeated int32 parm =2; // type1
}
//广
message BroadMsgIndication{
repeated SceneActor SceneActor =1 ; //
repeated ActorEffectBufferInfo ActorEffectBufferInfo =2;
repeated int32 removeBufferId =3; // buffer
repeated int32 removeActorId = 4 ;//
}