DLL: Add base type and interfaces to type declarations

This commit is contained in:
Katy Coe
2021-01-07 03:19:32 +01:00
parent b01be3dda6
commit 7dbe208656

View File

@@ -166,6 +166,14 @@ namespace Il2CppInspector.Outputs
mType.GenericParameters.Add(p);
}
// Base class
if (type.BaseType != null)
mType.BaseType = GetTypeRef(module, type.BaseType);
// Interfaces
foreach (var @interface in type.ImplementedInterfaces)
mType.Interfaces.Add(new InterfaceImplUser(GetTypeRef(module, @interface)));
// Add nested types
foreach (var nestedType in type.DeclaredNestedTypes)
mType.NestedTypes.Add(CreateType(module, nestedType));