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

// Token: 0x02000169 RID: 361
public class GameTextData : Object
{
	// Token: 0x170018E2 RID: 6370
	// (get) Token: 0x06004467 RID: 17511 RVA: 0x00110EF4 File Offset: 0x0010F0F4
	public unsafe GameLanguage Language
	{
		[CallerCount(3)]
		[CachedScanResults(RefRangeStart = 12582, RefRangeEnd = 12585, XrefRangeStart = 12582, XrefRangeEnd = 12585, 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: 0x170018E3 RID: 6371
	// (get) Token: 0x06004468 RID: 17512 RVA: 0x00110F44 File Offset: 0x0010F144
	public unsafe int RowAmount
	{
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 540619, XrefRangeEnd = 540626, 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: 0x06004469 RID: 17513 RVA: 0x00110F94 File Offset: 0x0010F194
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 540634, RefRangeEnd = 540635, XrefRangeStart = 540626, XrefRangeEnd = 540634, 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: 0x0600446A RID: 17514 RVA: 0x0011100C File Offset: 0x0010F20C
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 540635, RefRangeEnd = 540636, XrefRangeStart = 540635, XrefRangeEnd = 540635, 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: 0x0600446B RID: 17515 RVA: 0x00111060 File Offset: 0x0010F260
	[CallerCount(280)]
	[CachedScanResults(RefRangeStart = 540645, RefRangeEnd = 540925, XrefRangeStart = 540636, XrefRangeEnd = 540645, 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: 0x0600446C RID: 17516 RVA: 0x001110C0 File Offset: 0x0010F2C0
	// 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, 100667831);
		GameTextData.NativeMethodInfoPtr_get_RowAmount_Public_get_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameTextData>.NativeClassPtr, 100667832);
		GameTextData.NativeMethodInfoPtr__ctor_Public_Void_String_GameLanguage_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameTextData>.NativeClassPtr, 100667833);
		GameTextData.NativeMethodInfoPtr_UpdateLanguage_Public_Void_GameLanguage_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameTextData>.NativeClassPtr, 100667834);
		GameTextData.NativeMethodInfoPtr_GetText_Public_String_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameTextData>.NativeClassPtr, 100667835);
	}

	// Token: 0x0600446D RID: 17517 RVA: 0x0000A688 File Offset: 0x00008888
	public GameTextData(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x170018DF RID: 6367
	// (get) Token: 0x0600446E RID: 17518 RVA: 0x00111190 File Offset: 0x0010F390
	// (set) Token: 0x0600446F RID: 17519 RVA: 0x001111B8 File Offset: 0x0010F3B8
	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: 0x170018E0 RID: 6368
	// (get) Token: 0x06004470 RID: 17520 RVA: 0x001111DC File Offset: 0x0010F3DC
	// (set) Token: 0x06004471 RID: 17521 RVA: 0x00111204 File Offset: 0x0010F404
	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: 0x170018E1 RID: 6369
	// (get) Token: 0x06004472 RID: 17522 RVA: 0x00111228 File Offset: 0x0010F428
	// (set) Token: 0x06004473 RID: 17523 RVA: 0x0011125C File Offset: 0x0010F45C
	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: 0x04002D4F RID: 11599
	private static readonly IntPtr NativeFieldInfoPtr_language;

	// Token: 0x04002D50 RID: 11600
	private static readonly IntPtr NativeFieldInfoPtr_pointer;

	// Token: 0x04002D51 RID: 11601
	private static readonly IntPtr NativeFieldInfoPtr_dataMap;

	// Token: 0x04002D52 RID: 11602
	private static readonly IntPtr NativeMethodInfoPtr_get_Language_Public_get_GameLanguage_0;

	// Token: 0x04002D53 RID: 11603
	private static readonly IntPtr NativeMethodInfoPtr_get_RowAmount_Public_get_Int32_0;

	// Token: 0x04002D54 RID: 11604
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_String_GameLanguage_0;

	// Token: 0x04002D55 RID: 11605
	private static readonly IntPtr NativeMethodInfoPtr_UpdateLanguage_Public_Void_GameLanguage_0;

	// Token: 0x04002D56 RID: 11606
	private static readonly IntPtr NativeMethodInfoPtr_GetText_Public_String_Int32_0;
}
