namespace Cthangover.Mods.Skills { /// /// Enumerates every skill available in the game by its canonical identifier. /// Each member corresponds to a JSON-definition entry loaded by /// and used to construct instances. /// The underlying int values are not manually assigned; the enum serves /// purely as a compile-time-safe skill reference. /// public enum SkillName : int { /// /// A domination-type skill that allows the player to command enslaved units, /// overriding enemy AI and redirecting attacks under the player's control. /// SLAVE_MASTER } /// /// Provides conversion helpers for values, used when /// bridging the enum-based API with string-based lookups in /// and factory registries. /// public static class SkillNameExtensions { /// /// Converts a enum value to its lowercase string /// identifier, matching the format expected by /// and serialization layers. /// /// The skill enum value to convert. /// The lowercase name of the enum constant (e.g. "slave_master"). public static string ID(this SkillName skill) { return skill.ToString().ToLower(); } } }