20 lines
559 B
C#
20 lines
559 B
C#
namespace Il2CppInspector.Next.Metadata;
|
|
|
|
using VersionedSerialization.Attributes;
|
|
using StringIndex = int;
|
|
using TypeIndex = int;
|
|
|
|
[VersionedStruct]
|
|
public partial record struct Il2CppFieldDefinition
|
|
{
|
|
public StringIndex NameIndex { get; private set; }
|
|
public TypeIndex TypeIndex { get; private set; }
|
|
|
|
[VersionCondition(LessThan = "24.0")]
|
|
public int CustomAttributeIndex { get; private set; }
|
|
|
|
[VersionCondition(GreaterThan = "19.0")]
|
|
public uint Token { get; private set; }
|
|
|
|
public readonly bool IsValid => NameIndex != 0;
|
|
} |