diff --git a/Il2CppInspector/Il2CppModel.cs b/Il2CppInspector/Il2CppModel.cs index ec4e2c9..ad62158 100644 --- a/Il2CppInspector/Il2CppModel.cs +++ b/Il2CppInspector/Il2CppModel.cs @@ -4,6 +4,7 @@ All rights reserved. */ +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; @@ -24,6 +25,9 @@ namespace Il2CppInspector.Reflection // List of type usages that are initialized via pointers in the image public Dictionary TypesByVirtualAddress { get; } = new Dictionary(); + // Every type + public IEnumerable Types => new IEnumerable[] { TypesByDefinitionIndex, TypesByUsageIndex, TypesByVirtualAddress.Values }.SelectMany(t => t); + // List of all methods ordered by their MethodDefinitionIndex public MethodBase[] MethodsByDefinitionIndex { get; }