Core/ChatCommands: Add support for enum type arguments
Port From (https://github.com/TrinityCore/TrinityCore/commit/3923650aeb75611023aa1d46a4328838c8e0a33c)
This commit is contained in:
@@ -66,6 +66,9 @@ namespace Game.Chat
|
||||
if (Hyperlink.TryConsume(out value, type, args))
|
||||
return value;
|
||||
|
||||
if (type.IsEnum)
|
||||
type = type.GetEnumUnderlyingType();
|
||||
|
||||
switch (Type.GetTypeCode(type))
|
||||
{
|
||||
case TypeCode.SByte:
|
||||
|
||||
Reference in New Issue
Block a user