Added enum export to documentation generation
This commit is contained in:
committed by
Matthias Mailänder
parent
a985452907
commit
eda3dfa50f
@@ -236,6 +236,9 @@ namespace OpenRA.Mods.Common
|
||||
|
||||
public static string FriendlyTypeName(Type t)
|
||||
{
|
||||
if (t.IsEnum)
|
||||
return $"{t.Name} (enum)";
|
||||
|
||||
if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(HashSet<>))
|
||||
return $"Set of {t.GetGenericArguments().Select(FriendlyTypeName).First()}";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user