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

86 lines
3.5 KiB
C#

using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
namespace UnityEngine.PostProcessing
{
// Token: 0x02000522 RID: 1314
public sealed class GetSetAttribute : PropertyAttribute
{
// Token: 0x060093D9 RID: 37849 RVA: 0x00261378 File Offset: 0x0025F578
[CallerCount(2)]
[CachedScanResults(RefRangeStart = 147422, RefRangeEnd = 147424, XrefRangeStart = 147422, XrefRangeEnd = 147424, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe GetSetAttribute(string name)
: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<GetSetAttribute>.NativeClassPtr))
{
checked
{
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GetSetAttribute.NativeMethodInfoPtr__ctor_Public_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
}
}
// Token: 0x060093DA RID: 37850 RVA: 0x002613DC File Offset: 0x0025F5DC
// Note: this type is marked as 'beforefieldinit'.
static GetSetAttribute()
{
Il2CppClassPointerStore<GetSetAttribute>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityEngine.PostProcessing", "GetSetAttribute");
IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<GetSetAttribute>.NativeClassPtr);
GetSetAttribute.NativeFieldInfoPtr_name = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GetSetAttribute>.NativeClassPtr, "name");
GetSetAttribute.NativeFieldInfoPtr_dirty = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GetSetAttribute>.NativeClassPtr, "dirty");
GetSetAttribute.NativeMethodInfoPtr__ctor_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GetSetAttribute>.NativeClassPtr, 100674827);
}
// Token: 0x060093DB RID: 37851 RVA: 0x000FFE90 File Offset: 0x000FE090
public GetSetAttribute(IntPtr pointer)
: base(pointer)
{
}
// Token: 0x170031F6 RID: 12790
// (get) Token: 0x060093DC RID: 37852 RVA: 0x00261448 File Offset: 0x0025F648
// (set) Token: 0x060093DD RID: 37853 RVA: 0x00261471 File Offset: 0x0025F671
public unsafe string name
{
get
{
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GetSetAttribute.NativeFieldInfoPtr_name);
return IL2CPP.Il2CppStringToManaged(*intPtr);
}
set
{
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GetSetAttribute.NativeFieldInfoPtr_name), IL2CPP.ManagedStringToIl2Cpp(value));
}
}
// Token: 0x170031F7 RID: 12791
// (get) Token: 0x060093DE RID: 37854 RVA: 0x00261498 File Offset: 0x0025F698
// (set) Token: 0x060093DF RID: 37855 RVA: 0x002614C0 File Offset: 0x0025F6C0
public unsafe bool dirty
{
get
{
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GetSetAttribute.NativeFieldInfoPtr_dirty);
return *intPtr;
}
set
{
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GetSetAttribute.NativeFieldInfoPtr_dirty)) = value;
}
}
// Token: 0x040062AA RID: 25258
private static readonly IntPtr NativeFieldInfoPtr_name;
// Token: 0x040062AB RID: 25259
private static readonly IntPtr NativeFieldInfoPtr_dirty;
// Token: 0x040062AC RID: 25260
private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_String_0;
}
}