namespace SVSim.BattleNode.Bridge; /// /// A Shadowverse class (craft). The wire carries it as the stringified ordinal ("1".."8" on /// the classId field); this enum replaces that stringly-typed value on /// so the legal set lives in the type, not a trailing comment. /// covers an unset / placeholder context. Use /// to render the wire string. /// public enum CardClass { None = 0, Forestcraft = 1, Swordcraft = 2, Runecraft = 3, Dragoncraft = 4, Shadowcraft = 5, Bloodcraft = 6, Havencraft = 7, Portalcraft = 8, } /// Wire rendering for . public static class CardClassWire { /// The classId wire value — the class ordinal as a string ("1".."8", /// "0" for ), matching what the client sends/expects. public static string ToWireValue(this CardClass cardClass) => ((int)cardClass).ToString(); }