Use ReflectionUtility.AllTypes for type autocompleter, bump UniverseLib

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

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);
}
}