using MessagePack; using System.Text.Json.Serialization; namespace SVSim.EmulatedEntrypoint.Models.Dtos.Responses.Practice; [MessagePackObject] public class PracticeOpponent { /// Practice slot id (unique per entry; AI opponent identifier). [JsonPropertyName("practice_id")] [Key("practice_id")] public int PracticeId { get; set; } /// /// Text-table id resolved client-side via Data.Master.GetPracticeText(text_id). /// Stringified int 窶・client calls .ToString() before lookup. Sent as string to be safe. /// [JsonPropertyName("text_id")] [Key("text_id")] public string TextId { get; set; } = string.Empty; /// Class (leader) id the AI plays. [JsonPropertyName("class_id")] [Key("class_id")] public int ClassId { get; set; } /// Portrait / character id (which leader art the AI uses). [JsonPropertyName("chara_id")] [Key("chara_id")] public int CharaId { get; set; } /// Title-degree id shown next to the AI's name. [JsonPropertyName("degree_id")] [Key("degree_id")] public int DegreeId { get; set; } /// AI deck-strength tier (drives which preset deck the AI uses). [JsonPropertyName("ai_deck_level")] [Key("ai_deck_level")] public int AiDeckLevel { get; set; } /// AI decision-making tier. [JsonPropertyName("ai_logic_level")] [Key("ai_logic_level")] public int AiLogicLevel { get; set; } /// Starting HP for the AI side (often 20). [JsonPropertyName("ai_max_life")] [Key("ai_max_life")] public int AiMaxLife { get; set; } = 20; /// 3D battle-field asset id (string on the wire; client int.TryParse's it). [JsonPropertyName("battle3dfield_id")] [Key("battle3dfield_id")] public string Battle3dFieldId { get; set; } = "1"; /// true => entry disabled, client prepends maintenance suffix. Must always be emitted: client reads with `data["is_maintenance"] != null` but LitJson throws KeyNotFoundException on a missing key. [JsonPropertyName("is_maintenance")] [Key("is_maintenance")] public bool IsMaintenance { get; set; } /// true => entry is a special "campaign" practice (event-tied). [JsonPropertyName("is_campaign_practice")] [Key("is_campaign_practice")] public bool IsCampaignPractice { get; set; } }