Converting string to enum

Simple way - in your enum .h file put two functions:

  • GetStringForEnum(enum e) - switch on enum and return string
  • GetEnumForString(fstring s) - if/else on fstring and return enum

That way every file that includes the enum also includes the conversion functions.