(client) feat:实现热重载,实现多维度,实现武器,实现掉落物,实现状态UI,实现攻击AI (#44)

Co-authored-by: zzdxxz <2079238449@qq.com>
Co-committed-by: zzdxxz <2079238449@qq.com>
This commit is contained in:
2025-08-27 19:56:49 +08:00
committed by TheRedApricot
parent d91210a6ff
commit 8456b6c162
132 changed files with 18568 additions and 2534 deletions

View File

@ -0,0 +1,25 @@
using System;
namespace Entity
{
public class EntityHitEventArgs : EventArgs
{
public Entity AttackedEntity { get; } // 被攻击的实体
public Entity AttackerEntity { get; } // 攻击者
public int DamageDealt { get; } // 这次攻击造成的实际伤害
public float CurrentHealth { get; } // 攻击后的当前生命值
public float MaxHealth { get; } // 最大生命值
public bool WasFatal { get; } // 这次攻击是否致命(导致死亡)
public EntityHitEventArgs(Entity attacked, Entity attacker, int damage, float currentHealth, float maxHealth, bool wasFatal)
{
AttackedEntity = attacked;
AttackerEntity = attacker;
DamageDealt = damage;
CurrentHealth = currentHealth;
MaxHealth = maxHealth;
WasFatal = wasFatal;
}
}
}