MissionModels.cs
1 // Re-export shared types into the WebClient.Models namespace for backward compatibility. 2 global using CombatSession = GUNRPG.ClientModels.CombatSession; 3 global using PlayerState = GUNRPG.ClientModels.PlayerState; 4 global using BattleLogEntry = GUNRPG.ClientModels.BattleLogEntry; 5 6 namespace GUNRPG.WebClient.Models; 7 8 /// <summary>Request body for POST /sessions (create a new combat session).</summary> 9 public sealed class SessionCreateRequest 10 { 11 public Guid? Id { get; set; } 12 public Guid? OperatorId { get; set; } 13 public string? PlayerName { get; set; } 14 } 15 16 /// <summary>Request body for POST /sessions/{id}/intent.</summary> 17 public sealed class IntentRequest 18 { 19 public IntentDto Intents { get; set; } = new(); 20 public Guid? OperatorId { get; set; } 21 } 22 23 /// <summary>Player intent choices for a combat turn.</summary> 24 public sealed class IntentDto 25 { 26 public string? Primary { get; set; } 27 public string? Movement { get; set; } 28 public string? Stance { get; set; } 29 public string? Cover { get; set; } 30 public bool CancelMovement { get; set; } 31 }