Files
DanhengServer-OpenSource/GameServer/Game/Battle/HitMonsterInstance.cs
2024-10-07 14:59:32 +08:00

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
};
}
}