15 lines
558 B
C#
15 lines
558 B
C#
namespace NeonSprawl.Server.Game.Combat;
|
|
|
|
/// <summary>
|
|
/// Authoritative HP snapshot for a prototype combat target (NEO-80).
|
|
/// <see cref="TargetId"/> is the normalized lowercase target id.
|
|
/// <see cref="MaxHp"/> is catalog max HP for prototype dummies.
|
|
/// <see cref="CurrentHp"/> is current HP after damage; floored at zero.
|
|
/// <see cref="Defeated"/> is <c>true</c> when <see cref="CurrentHp"/> is zero.
|
|
/// </summary>
|
|
public readonly record struct CombatEntityHealthSnapshot(
|
|
string TargetId,
|
|
int MaxHp,
|
|
int CurrentHp,
|
|
bool Defeated);
|