Files
NobetaSource/Interop/Assembly-CSharp/RuntimeDecalCombiner.cs
2023-09-06 22:09:22 +02:00

107 lines
5.5 KiB
C#

using System;
using ch.sycoforge.Decal;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppSystem;
using Il2CppSystem.Collections.Generic;
using UnityEngine;
// Token: 0x02000337 RID: 823
public class RuntimeDecalCombiner : Il2CppSystem.Object
{
// Token: 0x06006F75 RID: 28533 RVA: 0x001C4BF4 File Offset: 0x001C2DF4
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 601447, XrefRangeEnd = 601493, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe static List<GameObject> Combine(IList<EasyDecal> decals)
{
checked
{
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
*ptr = IL2CPP.Il2CppObjectBaseToPtr(decals);
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(RuntimeDecalCombiner.NativeMethodInfoPtr_Combine_Public_Static_List_1_GameObject_IList_1_EasyDecal_0, 0, (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
IntPtr intPtr3 = intPtr;
return (intPtr3 != 0) ? new List<GameObject>(intPtr3) : null;
}
}
// Token: 0x06006F76 RID: 28534 RVA: 0x001C4C54 File Offset: 0x001C2E54
[CallerCount(1)]
[CachedScanResults(RefRangeStart = 601542, RefRangeEnd = 601543, XrefRangeStart = 601493, XrefRangeEnd = 601542, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe static List<GameObject> Combine(Dictionary<DecalTextureAtlas, List<EasyDecal>> mappings)
{
checked
{
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
*ptr = IL2CPP.Il2CppObjectBaseToPtr(mappings);
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(RuntimeDecalCombiner.NativeMethodInfoPtr_Combine_Private_Static_List_1_GameObject_Dictionary_2_DecalTextureAtlas_List_1_EasyDecal_0, 0, (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
IntPtr intPtr3 = intPtr;
return (intPtr3 != 0) ? new List<GameObject>(intPtr3) : null;
}
}
// Token: 0x06006F77 RID: 28535 RVA: 0x001C4CB4 File Offset: 0x001C2EB4
[CallerCount(1)]
[CachedScanResults(RefRangeStart = 601588, RefRangeEnd = 601589, XrefRangeStart = 601543, XrefRangeEnd = 601588, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe static GameObject Combine(IList<EasyDecal> decals, DecalTextureAtlas atlas)
{
IntPtr* ptr;
checked
{
ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
*ptr = IL2CPP.Il2CppObjectBaseToPtr(decals);
}
ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(atlas);
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(RuntimeDecalCombiner.NativeMethodInfoPtr_Combine_Private_Static_GameObject_IList_1_EasyDecal_DecalTextureAtlas_0, 0, (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
IntPtr intPtr3 = intPtr;
return (intPtr3 != 0) ? new GameObject(intPtr3) : null;
}
// Token: 0x06006F78 RID: 28536 RVA: 0x001C4D2C File Offset: 0x001C2F2C
[CallerCount(1659)]
[CachedScanResults(RefRangeStart = 7639, RefRangeEnd = 9298, XrefRangeStart = 7639, XrefRangeEnd = 9298, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe RuntimeDecalCombiner()
: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<RuntimeDecalCombiner>.NativeClassPtr))
{
IntPtr* ptr = null;
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(RuntimeDecalCombiner.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
}
// Token: 0x06006F79 RID: 28537 RVA: 0x001C4D78 File Offset: 0x001C2F78
// Note: this type is marked as 'beforefieldinit'.
static RuntimeDecalCombiner()
{
Il2CppClassPointerStore<RuntimeDecalCombiner>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "RuntimeDecalCombiner");
IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<RuntimeDecalCombiner>.NativeClassPtr);
RuntimeDecalCombiner.NativeMethodInfoPtr_Combine_Public_Static_List_1_GameObject_IList_1_EasyDecal_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RuntimeDecalCombiner>.NativeClassPtr, 100671582);
RuntimeDecalCombiner.NativeMethodInfoPtr_Combine_Private_Static_List_1_GameObject_Dictionary_2_DecalTextureAtlas_List_1_EasyDecal_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RuntimeDecalCombiner>.NativeClassPtr, 100671583);
RuntimeDecalCombiner.NativeMethodInfoPtr_Combine_Private_Static_GameObject_IList_1_EasyDecal_DecalTextureAtlas_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RuntimeDecalCombiner>.NativeClassPtr, 100671584);
RuntimeDecalCombiner.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RuntimeDecalCombiner>.NativeClassPtr, 100671585);
}
// Token: 0x06006F7A RID: 28538 RVA: 0x0000A74C File Offset: 0x0000894C
public RuntimeDecalCombiner(IntPtr pointer)
: base(pointer)
{
}
// Token: 0x04004A1B RID: 18971
private static readonly IntPtr NativeMethodInfoPtr_Combine_Public_Static_List_1_GameObject_IList_1_EasyDecal_0;
// Token: 0x04004A1C RID: 18972
private static readonly IntPtr NativeMethodInfoPtr_Combine_Private_Static_List_1_GameObject_Dictionary_2_DecalTextureAtlas_List_1_EasyDecal_0;
// Token: 0x04004A1D RID: 18973
private static readonly IntPtr NativeMethodInfoPtr_Combine_Private_Static_GameObject_IList_1_EasyDecal_DecalTextureAtlas_0;
// Token: 0x04004A1E RID: 18974
private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}