miduo_protocol/protos/SceneFight.proto

60 lines
1.8 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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; //指令参数 若type为1 则参数为行走路径
}
//广播场景里演员变换信息
message BroadMsgIndication{
repeated SceneActor SceneActor =1 ; // 演员信息变更
repeated ActorEffectBufferInfo ActorEffectBufferInfo =2;
repeated int32 removeBufferId =3; // 被删除的buffer
repeated int32 removeActorId = 4 ;//演员被移除
}