Enum support for GameModeScript.GetArg
g0dsCookie opened this issue · comments
g0dsCookie commented
Convert.ChangeType
doesn't work for Enum types.
if (typeof(T).IsEnum)
return (T)Enum.Parse(typeof(T), args[index].ToString());
^ This within the try/catch blocks should do the trick.
Ulrich Strauss commented
Added in 72fe72a