Use ReflectionUtility.AllTypes for type autocompleter, bump UniverseLib

This commit is contained in:
Sinai committed 2022-02-11 19:37:17 +11:00
1 parent df8522963e
commit bdf08f014f
3 files changed
+4 -5

No files matched your search

+1 -2
View File
@@ -65,9 +65,8 @@ namespace UnityExplorer.UI.Widgets.AutoComplete
allowedTypes = ReflectionUtility.GetImplementationsOf(BaseType, allowAbstract, allowEnum, false);
else
{
// TODO: Use direct reference. Will make AllTypes public in next release of UniverseLib
allowedTypes = new();
foreach (var entry in (SortedDictionary<string, Type>)AccessTools.Field(typeof(ReflectionUtility), "AllTypes").GetValue(null))
foreach (var entry in ReflectionUtility.AllTypes))
allowedTypes.Add(entry.Value);
}
}