Unity U3: Add CommanderMeta.cs (closes #48)

This commit is contained in:
KoalaTrapLord authored and GitHub committed 2026-03-18 02:03:38 -04:00
1 parent 36dba9e90a
commit d3431ff246
1 file changed
+18
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace CommanderAILab.Models
{
/// <summary>Commander archetype info from /api/lab/meta/commanders.</summary>
[Serializable]
public class CommanderMeta
{
[JsonProperty("name")] public string name;
[JsonProperty("source")] public string source;
[JsonProperty("archetype")] public string archetype;
[JsonProperty("colorIdentity")] public List<string> colorIdentity;
public override string ToString() => $"{name} ({archetype}) [{string.Join(",", colorIdentity ?? new List<string>())}]";
}
}