From d3431ff2463a2a97b7f46e0652173339fd2b9f82 Mon Sep 17 00:00:00 2001 From: KoalaTrapLord Date: Wed, 18 Mar 2026 02:03:38 -0400 Subject: [PATCH] Unity U3: Add CommanderMeta.cs (closes #48) --- .../Assets/Scripts/Models/CommanderMeta.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 unity-client/Assets/Scripts/Models/CommanderMeta.cs diff --git a/unity-client/Assets/Scripts/Models/CommanderMeta.cs b/unity-client/Assets/Scripts/Models/CommanderMeta.cs new file mode 100644 index 0000000..db8ebb6 --- /dev/null +++ b/unity-client/Assets/Scripts/Models/CommanderMeta.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace CommanderAILab.Models +{ + /// Commander archetype info from /api/lab/meta/commanders. + [Serializable] + public class CommanderMeta + { + [JsonProperty("name")] public string name; + [JsonProperty("source")] public string source; + [JsonProperty("archetype")] public string archetype; + [JsonProperty("colorIdentity")] public List colorIdentity; + + public override string ToString() => $"{name} ({archetype}) [{string.Join(",", colorIdentity ?? new List())}]"; + } +}