ecs/proto/idl/mod_battle.proto
2025-06-04 18:17:39 +08:00

39 lines
1.1 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 BattleEnterReq {
uint32 SceneId = 1; //战斗场景ID
}
message EntityProperty {
}
message ActionTarget {
uint32 Type = 1; //目标类型, 1.英雄自己人2.怪物(敌人)
uint32 TargetId = 2; //目标ID
uint32 Status = 3; //目标状态(待定,如被击飞)
uint64 Value = 4; //数值,可以是伤害,回血等
}
message BattleAction {
uint32 BattleRound = 5; //战斗回合
uint32 Caster = 1; //投手(动作发出者)
uint32 Type = 2; //类型
uint32 SkillId = 3; //技能ID
repeated ActionTarget TargetList = 4; //动作目标
}
message BattleEnterAck {
uint32 SceneId = 1; //战斗场景ID
uint32 Result = 2; //战斗结果, 1.表示挑战成功, 0.表示挑战失败
uint32 Starts = 3; //战斗星数
repeated int32 Heroes = 4; //英雄阵容
repeated int32 Enemies = 5; //敌人阵容
uint32 BattleRounds = 6; //战斗回合数
repeated BattleAction ActionList = 7; //动作列表
repeated Item RewardList = 8; //奖励列表(掉落物品列表)
}