mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
18 lines
508 B
C#
18 lines
508 B
C#
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Game.Battle;
|
|
|
|
public class HitMonsterInstance(int monsterId, MonsterBattleType battleType)
|
|
{
|
|
public int MonsterId { get; set; } = monsterId;
|
|
public MonsterBattleType BattleType { get; set; } = battleType;
|
|
|
|
public HitMonsterBattleInfo ToProto()
|
|
{
|
|
return new HitMonsterBattleInfo
|
|
{
|
|
MonsterBattleType = BattleType,
|
|
TargetMonsterEntityId = (uint)MonsterId
|
|
};
|
|
}
|
|
} |