36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
namespace Il2CppInspector.Next.Metadata;
|
|
|
|
using StringIndex = int;
|
|
using AssemblyIndex = int;
|
|
using MethodIndex = int;
|
|
using CustomAttributeIndex = int;
|
|
using VersionedSerialization.Attributes;
|
|
|
|
[VersionedStruct]
|
|
public partial record struct Il2CppImageDefinition
|
|
{
|
|
public StringIndex NameIndex { get; private set; }
|
|
public AssemblyIndex AssemblyIndex { get; private set; }
|
|
|
|
public TypeDefinitionIndex TypeStart { get; private set; }
|
|
public uint TypeCount { get; private set; }
|
|
|
|
[VersionCondition(GreaterThan = "24.0")]
|
|
public TypeDefinitionIndex ExportedTypeStart { get; private set; }
|
|
|
|
[VersionCondition(GreaterThan = "24.0")]
|
|
public uint ExportedTypeCount { get; private set; }
|
|
|
|
public MethodIndex EntryPointIndex { get; private set; }
|
|
|
|
[VersionCondition(GreaterThan = "19.0")]
|
|
public uint Token { get; private set; }
|
|
|
|
[VersionCondition(GreaterThan = "24.1")]
|
|
public CustomAttributeIndex CustomAttributeStart { get; private set; }
|
|
|
|
[VersionCondition(GreaterThan = "24.1")]
|
|
public uint CustomAttributeCount { get; private set; }
|
|
|
|
public readonly bool IsValid => NameIndex != 0;
|
|
} |