I have an enum containing some arbitrary values and want to automatically map the values of the enum to another enum 1-to-1 (with some arbitrary addition). What would be the most idiomatic way to accomplish this task?
I want to do something like add Element.keys+"Magic" to the Skills enum in a declarative fashion and then have these values available as keys without needing to duplicate the work and add a suffix.
enum Element {
Air,
Fire,
Earth,
Water
}
-->
enum Skills {
// Unrelated Skills
Unarmed,
LightArmor,
etc. . .
// 1-to-1 Mapping
AirMagic,
FireMagic,
EarthMagic,
WaterMagic
}