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())}]"; + } +}