mirror of
https://github.com/AssetRipper/Cpp2IL.git
synced 2026-11-13 04:26:33 -10:00
23 lines
597 B
C#
23 lines
597 B
C#
using LibCpp2IL.Reflection;
|
|
|
|
namespace LibCpp2IL.Metadata;
|
|
|
|
public class Il2CppInterfaceOffset : ReadableClass
|
|
{
|
|
public int typeIndex;
|
|
public int offset;
|
|
|
|
public Il2CppTypeReflectionData Type => LibCpp2ILUtils.GetTypeReflectionData(LibCpp2IlMain.Binary!.GetType(typeIndex));
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"InterfaceOffsetPair({typeIndex}/{Type.ToString() ?? "unknown type"} => {offset})";
|
|
}
|
|
|
|
public override void Read(ClassReadingBinaryReader reader)
|
|
{
|
|
typeIndex = reader.ReadTypeIndex();
|
|
offset = reader.ReadInt32();
|
|
}
|
|
}
|