using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x02000239 RID: 569
public class UIHistoryHandler : MonoBehaviour
{
	// Token: 0x060051AC RID: 20908 RVA: 0x001459C8 File Offset: 0x00143BC8
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 553301, XrefRangeEnd = 553302, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateValue(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(UIHistoryHandler.NativeMethodInfoPtr_UpdateValue_Public_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060051AD RID: 20909 RVA: 0x00145A24 File Offset: 0x00143C24
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 553302, XrefRangeEnd = 553306, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Localize(LocalizationData data, int index)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(data);
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref index;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIHistoryHandler.NativeMethodInfoPtr_Localize_Public_Void_LocalizationData_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060051AE RID: 20910 RVA: 0x00145A90 File Offset: 0x00143C90
	[CallerCount(63)]
	[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe UIHistoryHandler()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIHistoryHandler.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060051AF RID: 20911 RVA: 0x00145ADC File Offset: 0x00143CDC
	// Note: this type is marked as 'beforefieldinit'.
	static UIHistoryHandler()
	{
		Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "UIHistoryHandler");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr);
		UIHistoryHandler.NativeFieldInfoPtr_label = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr, "label");
		UIHistoryHandler.NativeFieldInfoPtr_content = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr, "content");
		UIHistoryHandler.NativeMethodInfoPtr_UpdateValue_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr, 100668780);
		UIHistoryHandler.NativeMethodInfoPtr_Localize_Public_Void_LocalizationData_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr, 100668781);
		UIHistoryHandler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr, 100668782);
	}

	// Token: 0x060051B0 RID: 20912 RVA: 0x0000351C File Offset: 0x0000171C
	public UIHistoryHandler(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001D1A RID: 7450
	// (get) Token: 0x060051B1 RID: 20913 RVA: 0x00145B70 File Offset: 0x00143D70
	// (set) Token: 0x060051B2 RID: 20914 RVA: 0x00145BA4 File Offset: 0x00143DA4
	public unsafe Text label
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIHistoryHandler.NativeFieldInfoPtr_label);
			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(UIHistoryHandler.NativeFieldInfoPtr_label), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001D1B RID: 7451
	// (get) Token: 0x060051B3 RID: 20915 RVA: 0x00145BCC File Offset: 0x00143DCC
	// (set) Token: 0x060051B4 RID: 20916 RVA: 0x00145C00 File Offset: 0x00143E00
	public unsafe Text content
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIHistoryHandler.NativeFieldInfoPtr_content);
			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(UIHistoryHandler.NativeFieldInfoPtr_content), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04003618 RID: 13848
	private static readonly IntPtr NativeFieldInfoPtr_label;

	// Token: 0x04003619 RID: 13849
	private static readonly IntPtr NativeFieldInfoPtr_content;

	// Token: 0x0400361A RID: 13850
	private static readonly IntPtr NativeMethodInfoPtr_UpdateValue_Public_Void_String_0;

	// Token: 0x0400361B RID: 13851
	private static readonly IntPtr NativeMethodInfoPtr_Localize_Public_Void_LocalizationData_Int32_0;

	// Token: 0x0400361C RID: 13852
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
