25 lines
715 B
C#
25 lines
715 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace NeonSprawl.Server.Game.Combat;
|
|
|
|
/// <summary>JSON body for <c>GET /game/players/{id}/combat-health</c> (NEO-95).</summary>
|
|
public sealed class PlayerCombatHealthResponse
|
|
{
|
|
public const int CurrentSchemaVersion = 1;
|
|
|
|
[JsonPropertyName("schemaVersion")]
|
|
public int SchemaVersion { get; init; } = CurrentSchemaVersion;
|
|
|
|
[JsonPropertyName("playerId")]
|
|
public required string PlayerId { get; init; }
|
|
|
|
[JsonPropertyName("maxHp")]
|
|
public required int MaxHp { get; init; }
|
|
|
|
[JsonPropertyName("currentHp")]
|
|
public required int CurrentHp { get; init; }
|
|
|
|
[JsonPropertyName("defeated")]
|
|
public required bool Defeated { get; init; }
|
|
}
|