ecs/proto/idl/mod_battle.proto

40 lines
1.3 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
package Pb;
option go_package = "pb/";
import "mod_item.proto";
//战斗单位
message BattleEntity {
uint32 Type = 1; //目标类型, 1.英雄自己人2.怪物(敌人)
uint32 Id = 2; //目标ID
uint64 HpMax = 3; //当前血量
uint32 Rage = 4; //当前怒气
repeated uint32 Status = 5; //目标状态(待定,如眩晕、击飞等)
repeated uint64 Value = 6; //数值列表,可以是伤害,回血等
repeated uint64 Hp = 7; //当前血量列表
}
//战斗动作
message BattleAction {
BattleEntity Caster = 1; //投手(动作发出者)
uint32 Type = 2; //类型
uint32 SkillId = 3; //技能ID
repeated BattleEntity TargetList = 4; //动作目标
}
message BattleRound {
uint32 BattleRound = 1; //战斗当前回合
repeated BattleAction ActionList = 2; //动作列表
}
message BattleEnterAck {
uint32 SceneId = 1; //战斗场景ID
bool Result = 2; //战斗结果, 1.表示挑战成功, 0.表示挑战失败
int32 Score = 3; //战斗分数(星数)
repeated int32 Heroes = 4; //英雄阵容
repeated int32 Enemies = 5; //敌人阵容
uint32 BattleRounds = 6; //战斗总回合数
repeated BattleRound RoundList = 7;
repeated Item RewardList = 8; //奖励列表(掉落物品列表)
}