Files
NobetaSource/Interop/Assembly-CSharp/MTAssets/UltimateLODSystem/MeshSimplifier/Internal/Ref.cs
2023-09-06 22:09:22 +02:00

65 lines
2.4 KiB
C#

using System;
using System.Runtime.InteropServices;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppSystem;
namespace MTAssets.UltimateLODSystem.MeshSimplifier.Internal
{
// Token: 0x0200063A RID: 1594
[StructLayout(LayoutKind.Explicit)]
public struct Ref
{
// Token: 0x0600A268 RID: 41576 RVA: 0x0029B5B4 File Offset: 0x002997B4
[CallerCount(68)]
[CachedScanResults(RefRangeStart = 32750, RefRangeEnd = 32818, XrefRangeStart = 32750, XrefRangeEnd = 32818, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe void Set(int tid, int tvertex)
{
IntPtr* ptr;
checked
{
ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
*ptr = ref tid;
}
ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref tvertex;
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Ref.NativeMethodInfoPtr_Set_Public_Void_Int32_Int32_0, ref this, (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
}
// Token: 0x0600A269 RID: 41577 RVA: 0x0029B60C File Offset: 0x0029980C
// Note: this type is marked as 'beforefieldinit'.
static Ref()
{
Il2CppClassPointerStore<Ref>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "MTAssets.UltimateLODSystem.MeshSimplifier.Internal", "Ref");
IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<Ref>.NativeClassPtr);
Ref.NativeFieldInfoPtr_tid = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Ref>.NativeClassPtr, "tid");
Ref.NativeFieldInfoPtr_tvertex = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Ref>.NativeClassPtr, "tvertex");
Ref.NativeMethodInfoPtr_Set_Public_Void_Int32_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Ref>.NativeClassPtr, 100675893);
}
// Token: 0x0600A26A RID: 41578 RVA: 0x0029B678 File Offset: 0x00299878
public Object BoxIl2CppObject()
{
return new Object(IL2CPP.il2cpp_value_box(Il2CppClassPointerStore<Ref>.NativeClassPtr, ref this));
}
// Token: 0x04006D0B RID: 27915
private static readonly IntPtr NativeFieldInfoPtr_tid;
// Token: 0x04006D0C RID: 27916
private static readonly IntPtr NativeFieldInfoPtr_tvertex;
// Token: 0x04006D0D RID: 27917
private static readonly IntPtr NativeMethodInfoPtr_Set_Public_Void_Int32_Int32_0;
// Token: 0x04006D0E RID: 27918
[FieldOffset(0)]
public int tid;
// Token: 0x04006D0F RID: 27919
[FieldOffset(4)]
public int tvertex;
}
}