using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using MarsSDK;
using UnityEngine.UI;

// Token: 0x0200029D RID: 669
public class UIValuablesHandler : UIHandlerBase
{
	// Token: 0x17001F90 RID: 8080
	// (get) Token: 0x06005AA9 RID: 23209 RVA: 0x0016DC94 File Offset: 0x0016BE94
	public unsafe bool IsUnlocked
	{
		[CallerCount(0)]
		get
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIValuablesHandler.NativeMethodInfoPtr_get_IsUnlocked_Public_get_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}
	}

	// Token: 0x06005AAA RID: 23210 RVA: 0x0016DCE4 File Offset: 0x0016BEE4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 566028, XrefRangeEnd = 566041, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void OnSelect()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UIValuablesHandler.NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005AAB RID: 23211 RVA: 0x0016DD34 File Offset: 0x0016BF34
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 566041, XrefRangeEnd = 566049, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void OnDeselect()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UIValuablesHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005AAC RID: 23212 RVA: 0x0016DD84 File Offset: 0x0016BF84
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 566053, RefRangeEnd = 566054, XrefRangeStart = 566049, XrefRangeEnd = 566053, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetIndexLabel(int idx)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref idx;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIValuablesHandler.NativeMethodInfoPtr_SetIndexLabel_Public_Void_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005AAD RID: 23213 RVA: 0x0016DDD8 File Offset: 0x0016BFD8
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 566058, RefRangeEnd = 566060, XrefRangeStart = 566054, XrefRangeEnd = 566058, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetLockState(bool isLocked)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref isLocked;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIValuablesHandler.NativeMethodInfoPtr_SetLockState_Public_Void_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005AAE RID: 23214 RVA: 0x0016DE2C File Offset: 0x0016C02C
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 566067, RefRangeEnd = 566069, XrefRangeStart = 566060, XrefRangeEnd = 566067, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetNewPropState(bool isNewProp)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref isNewProp;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIValuablesHandler.NativeMethodInfoPtr_SetNewPropState_Public_Void_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005AAF RID: 23215 RVA: 0x0016DE80 File Offset: 0x0016C080
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 566072, RefRangeEnd = 566074, XrefRangeStart = 566069, XrefRangeEnd = 566072, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetLabel(string value)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.ManagedStringToIl2Cpp(value);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIValuablesHandler.NativeMethodInfoPtr_SetLabel_Public_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005AB0 RID: 23216 RVA: 0x0016DEDC File Offset: 0x0016C0DC
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 566074, XrefRangeEnd = 566077, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetFont(GameFontPack fontPack)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(fontPack);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIValuablesHandler.NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005AB1 RID: 23217 RVA: 0x0016DF38 File Offset: 0x0016C138
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 566077, XrefRangeEnd = 566078, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe UIValuablesHandler()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<UIValuablesHandler>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIValuablesHandler.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005AB2 RID: 23218 RVA: 0x0016DF84 File Offset: 0x0016C184
	// Note: this type is marked as 'beforefieldinit'.
	static UIValuablesHandler()
	{
		Il2CppClassPointerStore<UIValuablesHandler>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "UIValuablesHandler");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UIValuablesHandler>.NativeClassPtr);
		UIValuablesHandler.NativeFieldInfoPtr_contentlabel = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIValuablesHandler>.NativeClassPtr, "contentlabel");
		UIValuablesHandler.NativeFieldInfoPtr_indexLabel = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIValuablesHandler>.NativeClassPtr, "indexLabel");
		UIValuablesHandler.NativeFieldInfoPtr_childGraphics = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIValuablesHandler>.NativeClassPtr, "childGraphics");
		UIValuablesHandler.NativeFieldInfoPtr_isUnlocked = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIValuablesHandler>.NativeClassPtr, "isUnlocked");
		UIValuablesHandler.NativeMethodInfoPtr_get_IsUnlocked_Public_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIValuablesHandler>.NativeClassPtr, 100669745);
		UIValuablesHandler.NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIValuablesHandler>.NativeClassPtr, 100669746);
		UIValuablesHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIValuablesHandler>.NativeClassPtr, 100669747);
		UIValuablesHandler.NativeMethodInfoPtr_SetIndexLabel_Public_Void_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIValuablesHandler>.NativeClassPtr, 100669748);
		UIValuablesHandler.NativeMethodInfoPtr_SetLockState_Public_Void_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIValuablesHandler>.NativeClassPtr, 100669749);
		UIValuablesHandler.NativeMethodInfoPtr_SetNewPropState_Public_Void_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIValuablesHandler>.NativeClassPtr, 100669750);
		UIValuablesHandler.NativeMethodInfoPtr_SetLabel_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIValuablesHandler>.NativeClassPtr, 100669751);
		UIValuablesHandler.NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIValuablesHandler>.NativeClassPtr, 100669752);
		UIValuablesHandler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIValuablesHandler>.NativeClassPtr, 100669753);
	}

	// Token: 0x06005AB3 RID: 23219 RVA: 0x00146FEC File Offset: 0x001451EC
	public UIValuablesHandler(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001F8C RID: 8076
	// (get) Token: 0x06005AB4 RID: 23220 RVA: 0x0016E0B8 File Offset: 0x0016C2B8
	// (set) Token: 0x06005AB5 RID: 23221 RVA: 0x0016E0EC File Offset: 0x0016C2EC
	public unsafe Text contentlabel
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIValuablesHandler.NativeFieldInfoPtr_contentlabel);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Text(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIValuablesHandler.NativeFieldInfoPtr_contentlabel), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001F8D RID: 8077
	// (get) Token: 0x06005AB6 RID: 23222 RVA: 0x0016E114 File Offset: 0x0016C314
	// (set) Token: 0x06005AB7 RID: 23223 RVA: 0x0016E148 File Offset: 0x0016C348
	public unsafe Text indexLabel
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIValuablesHandler.NativeFieldInfoPtr_indexLabel);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Text(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIValuablesHandler.NativeFieldInfoPtr_indexLabel), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001F8E RID: 8078
	// (get) Token: 0x06005AB8 RID: 23224 RVA: 0x0016E170 File Offset: 0x0016C370
	// (set) Token: 0x06005AB9 RID: 23225 RVA: 0x0016E1A4 File Offset: 0x0016C3A4
	public unsafe Il2CppReferenceArray<Graphic> childGraphics
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIValuablesHandler.NativeFieldInfoPtr_childGraphics);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Il2CppReferenceArray<Graphic>(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIValuablesHandler.NativeFieldInfoPtr_childGraphics), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001F8F RID: 8079
	// (get) Token: 0x06005ABA RID: 23226 RVA: 0x0016E1CC File Offset: 0x0016C3CC
	// (set) Token: 0x06005ABB RID: 23227 RVA: 0x0016E1F4 File Offset: 0x0016C3F4
	public unsafe bool isUnlocked
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIValuablesHandler.NativeFieldInfoPtr_isUnlocked);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIValuablesHandler.NativeFieldInfoPtr_isUnlocked)) = value;
		}
	}

	// Token: 0x04003C24 RID: 15396
	private static readonly IntPtr NativeFieldInfoPtr_contentlabel;

	// Token: 0x04003C25 RID: 15397
	private static readonly IntPtr NativeFieldInfoPtr_indexLabel;

	// Token: 0x04003C26 RID: 15398
	private static readonly IntPtr NativeFieldInfoPtr_childGraphics;

	// Token: 0x04003C27 RID: 15399
	private static readonly IntPtr NativeFieldInfoPtr_isUnlocked;

	// Token: 0x04003C28 RID: 15400
	private static readonly IntPtr NativeMethodInfoPtr_get_IsUnlocked_Public_get_Boolean_0;

	// Token: 0x04003C29 RID: 15401
	private static readonly IntPtr NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0;

	// Token: 0x04003C2A RID: 15402
	private static readonly IntPtr NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0;

	// Token: 0x04003C2B RID: 15403
	private static readonly IntPtr NativeMethodInfoPtr_SetIndexLabel_Public_Void_Int32_0;

	// Token: 0x04003C2C RID: 15404
	private static readonly IntPtr NativeMethodInfoPtr_SetLockState_Public_Void_Boolean_0;

	// Token: 0x04003C2D RID: 15405
	private static readonly IntPtr NativeMethodInfoPtr_SetNewPropState_Public_Void_Boolean_0;

	// Token: 0x04003C2E RID: 15406
	private static readonly IntPtr NativeMethodInfoPtr_SetLabel_Public_Void_String_0;

	// Token: 0x04003C2F RID: 15407
	private static readonly IntPtr NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0;

	// Token: 0x04003C30 RID: 15408
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
