15 lines
541 B
C#
15 lines
541 B
C#
namespace NeonSprawl.Server.Game.Combat;
|
|
|
|
/// <summary>
|
|
/// Authoritative HP snapshot for a session player (NEO-95).
|
|
/// <see cref="PlayerId"/> is the normalized lowercase player id.
|
|
/// <see cref="MaxHp"/> is prototype session max HP.
|
|
/// <see cref="CurrentHp"/> is current HP after NPC damage; floored at zero.
|
|
/// <see cref="Defeated"/> is <c>true</c> when <see cref="CurrentHp"/> is zero.
|
|
/// </summary>
|
|
public readonly record struct PlayerCombatHealthSnapshot(
|
|
string PlayerId,
|
|
int MaxHp,
|
|
int CurrentHp,
|
|
bool Defeated);
|