using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using Il2CppSystem;
using Il2CppSystem.Collections.Generic;

// Token: 0x02000195 RID: 405
public class GameTextData : Object
{
	// Token: 0x17001A10 RID: 6672
	// (get) Token: 0x06004899 RID: 18585 RVA: 0x00122A78 File Offset: 0x00120C78
	public unsafe GameLanguage Language
	{
		[CallerCount(3)]
		[CachedScanResults(RefRangeStart = 12330, RefRangeEnd = 12333, XrefRangeStart = 12330, XrefRangeEnd = 12333, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		get
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GameTextData.NativeMethodInfoPtr_get_Language_Public_get_GameLanguage_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}
	}

	// Token: 0x17001A11 RID: 6673
	// (get) Token: 0x0600489A RID: 18586 RVA: 0x00122AC8 File Offset: 0x00120CC8
	public unsafe int RowAmount
	{
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 567585, XrefRangeEnd = 567592, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		get
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GameTextData.NativeMethodInfoPtr_get_RowAmount_Public_get_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}
	}

	// Token: 0x0600489B RID: 18587 RVA: 0x00122B18 File Offset: 0x00120D18
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 567600, RefRangeEnd = 567601, XrefRangeStart = 567592, XrefRangeEnd = 567600, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe GameTextData(string json, GameLanguage language)
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<GameTextData>.NativeClassPtr))
	{
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.ManagedStringToIl2Cpp(json);
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref language;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GameTextData.NativeMethodInfoPtr__ctor_Public_Void_String_GameLanguage_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x0600489C RID: 18588 RVA: 0x00122B90 File Offset: 0x00120D90
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 567601, RefRangeEnd = 567602, XrefRangeStart = 567601, XrefRangeEnd = 567601, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateLanguage(GameLanguage language)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref language;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GameTextData.NativeMethodInfoPtr_UpdateLanguage_Public_Void_GameLanguage_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x0600489D RID: 18589 RVA: 0x00122BE4 File Offset: 0x00120DE4
	[CallerCount(353)]
	[CachedScanResults(RefRangeStart = 567611, RefRangeEnd = 567964, XrefRangeStart = 567602, XrefRangeEnd = 567611, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe string GetText(int id)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref id;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GameTextData.NativeMethodInfoPtr_GetText_Public_String_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return IL2CPP.Il2CppStringToManaged(intPtr);
		}
	}

	// Token: 0x0600489E RID: 18590 RVA: 0x00122C44 File Offset: 0x00120E44
	// Note: this type is marked as 'beforefieldinit'.
	static GameTextData()
	{
		Il2CppClassPointerStore<GameTextData>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "GameTextData");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<GameTextData>.NativeClassPtr);
		GameTextData.NativeFieldInfoPtr_language = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GameTextData>.NativeClassPtr, "language");
		GameTextData.NativeFieldInfoPtr_pointer = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GameTextData>.NativeClassPtr, "pointer");
		GameTextData.NativeFieldInfoPtr_dataMap = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GameTextData>.NativeClassPtr, "dataMap");
		GameTextData.NativeMethodInfoPtr_get_Language_Public_get_GameLanguage_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameTextData>.NativeClassPtr, 100668207);
		GameTextData.NativeMethodInfoPtr_get_RowAmount_Public_get_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameTextData>.NativeClassPtr, 100668208);
		GameTextData.NativeMethodInfoPtr__ctor_Public_Void_String_GameLanguage_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameTextData>.NativeClassPtr, 100668209);
		GameTextData.NativeMethodInfoPtr_UpdateLanguage_Public_Void_GameLanguage_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameTextData>.NativeClassPtr, 100668210);
		GameTextData.NativeMethodInfoPtr_GetText_Public_String_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameTextData>.NativeClassPtr, 100668211);
	}

	// Token: 0x0600489F RID: 18591 RVA: 0x0000A74C File Offset: 0x0000894C
	public GameTextData(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001A0D RID: 6669
	// (get) Token: 0x060048A0 RID: 18592 RVA: 0x00122D14 File Offset: 0x00120F14
	// (set) Token: 0x060048A1 RID: 18593 RVA: 0x00122D3C File Offset: 0x00120F3C
	public unsafe GameLanguage language
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameTextData.NativeFieldInfoPtr_language);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameTextData.NativeFieldInfoPtr_language)) = value;
		}
	}

	// Token: 0x17001A0E RID: 6670
	// (get) Token: 0x060048A2 RID: 18594 RVA: 0x00122D60 File Offset: 0x00120F60
	// (set) Token: 0x060048A3 RID: 18595 RVA: 0x00122D88 File Offset: 0x00120F88
	public unsafe int pointer
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameTextData.NativeFieldInfoPtr_pointer);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameTextData.NativeFieldInfoPtr_pointer)) = value;
		}
	}

	// Token: 0x17001A0F RID: 6671
	// (get) Token: 0x060048A4 RID: 18596 RVA: 0x00122DAC File Offset: 0x00120FAC
	// (set) Token: 0x060048A5 RID: 18597 RVA: 0x00122DE0 File Offset: 0x00120FE0
	public unsafe Dictionary<int, Il2CppStringArray> dataMap
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameTextData.NativeFieldInfoPtr_dataMap);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Dictionary<int, Il2CppStringArray>(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameTextData.NativeFieldInfoPtr_dataMap), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04003030 RID: 12336
	private static readonly IntPtr NativeFieldInfoPtr_language;

	// Token: 0x04003031 RID: 12337
	private static readonly IntPtr NativeFieldInfoPtr_pointer;

	// Token: 0x04003032 RID: 12338
	private static readonly IntPtr NativeFieldInfoPtr_dataMap;

	// Token: 0x04003033 RID: 12339
	private static readonly IntPtr NativeMethodInfoPtr_get_Language_Public_get_GameLanguage_0;

	// Token: 0x04003034 RID: 12340
	private static readonly IntPtr NativeMethodInfoPtr_get_RowAmount_Public_get_Int32_0;

	// Token: 0x04003035 RID: 12341
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_String_GameLanguage_0;

	// Token: 0x04003036 RID: 12342
	private static readonly IntPtr NativeMethodInfoPtr_UpdateLanguage_Public_Void_GameLanguage_0;

	// Token: 0x04003037 RID: 12343
	private static readonly IntPtr NativeMethodInfoPtr_GetText_Public_String_Int32_0;
}
