using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using Il2CppSystem;
using UnityEngine;

// Token: 0x02000226 RID: 550
[Serializable]
public class GameJsonContainer : Il2CppSystem.Object
{
	// Token: 0x06005083 RID: 20611 RVA: 0x00140998 File Offset: 0x0013EB98
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 551729, RefRangeEnd = 551731, XrefRangeStart = 551697, XrefRangeEnd = 551729, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateJsonAssets(Il2CppReferenceArray<TextAsset> jsons)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(jsons);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GameJsonContainer.NativeMethodInfoPtr_UpdateJsonAssets_Public_Void_Il2CppReferenceArray_1_TextAsset_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005084 RID: 20612 RVA: 0x001409F4 File Offset: 0x0013EBF4
	[CallerCount(8)]
	[CachedScanResults(RefRangeStart = 551748, RefRangeEnd = 551756, XrefRangeStart = 551731, XrefRangeEnd = 551748, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe TextAsset GetAsset(Il2CppReferenceArray<TextAsset> jsons, string name)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(jsons);
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.ManagedStringToIl2Cpp(name);
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GameJsonContainer.NativeMethodInfoPtr_GetAsset_Private_TextAsset_Il2CppReferenceArray_1_TextAsset_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		IntPtr intPtr3 = intPtr;
		return (intPtr3 != 0) ? new TextAsset(intPtr3) : null;
	}

	// Token: 0x06005085 RID: 20613 RVA: 0x00140A7C File Offset: 0x0013EC7C
	[CallerCount(1642)]
	[CachedScanResults(RefRangeStart = 7417, RefRangeEnd = 9059, XrefRangeStart = 7417, XrefRangeEnd = 9059, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe GameJsonContainer()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<GameJsonContainer>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GameJsonContainer.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005086 RID: 20614 RVA: 0x00140AC8 File Offset: 0x0013ECC8
	// Note: this type is marked as 'beforefieldinit'.
	static GameJsonContainer()
	{
		Il2CppClassPointerStore<GameJsonContainer>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "GameJsonContainer");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<GameJsonContainer>.NativeClassPtr);
		GameJsonContainer.NativeFieldInfoPtr_systemText = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GameJsonContainer>.NativeClassPtr, "systemText");
		GameJsonContainer.NativeFieldInfoPtr_valuableText = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GameJsonContainer>.NativeClassPtr, "valuableText");
		GameJsonContainer.NativeFieldInfoPtr_gameTipText = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GameJsonContainer>.NativeClassPtr, "gameTipText");
		GameJsonContainer.NativeFieldInfoPtr_achievementText = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GameJsonContainer>.NativeClassPtr, "achievementText");
		GameJsonContainer.NativeFieldInfoPtr_storyText = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GameJsonContainer>.NativeClassPtr, "storyText");
		GameJsonContainer.NativeFieldInfoPtr_combatDialogue = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GameJsonContainer>.NativeClassPtr, "combatDialogue");
		GameJsonContainer.NativeFieldInfoPtr_itemVoice = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GameJsonContainer>.NativeClassPtr, "itemVoice");
		GameJsonContainer.NativeFieldInfoPtr_videoText = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GameJsonContainer>.NativeClassPtr, "videoText");
		GameJsonContainer.NativeMethodInfoPtr_UpdateJsonAssets_Public_Void_Il2CppReferenceArray_1_TextAsset_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameJsonContainer>.NativeClassPtr, 100668664);
		GameJsonContainer.NativeMethodInfoPtr_GetAsset_Private_TextAsset_Il2CppReferenceArray_1_TextAsset_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameJsonContainer>.NativeClassPtr, 100668665);
		GameJsonContainer.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameJsonContainer>.NativeClassPtr, 100668666);
	}

	// Token: 0x06005087 RID: 20615 RVA: 0x0000A688 File Offset: 0x00008888
	public GameJsonContainer(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001CD1 RID: 7377
	// (get) Token: 0x06005088 RID: 20616 RVA: 0x00140BD4 File Offset: 0x0013EDD4
	// (set) Token: 0x06005089 RID: 20617 RVA: 0x00140C08 File Offset: 0x0013EE08
	public unsafe TextAsset systemText
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.NativeFieldInfoPtr_systemText);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new TextAsset(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.NativeFieldInfoPtr_systemText), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001CD2 RID: 7378
	// (get) Token: 0x0600508A RID: 20618 RVA: 0x00140C30 File Offset: 0x0013EE30
	// (set) Token: 0x0600508B RID: 20619 RVA: 0x00140C64 File Offset: 0x0013EE64
	public unsafe TextAsset valuableText
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.NativeFieldInfoPtr_valuableText);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new TextAsset(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.NativeFieldInfoPtr_valuableText), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001CD3 RID: 7379
	// (get) Token: 0x0600508C RID: 20620 RVA: 0x00140C8C File Offset: 0x0013EE8C
	// (set) Token: 0x0600508D RID: 20621 RVA: 0x00140CC0 File Offset: 0x0013EEC0
	public unsafe TextAsset gameTipText
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.NativeFieldInfoPtr_gameTipText);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new TextAsset(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.NativeFieldInfoPtr_gameTipText), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001CD4 RID: 7380
	// (get) Token: 0x0600508E RID: 20622 RVA: 0x00140CE8 File Offset: 0x0013EEE8
	// (set) Token: 0x0600508F RID: 20623 RVA: 0x00140D1C File Offset: 0x0013EF1C
	public unsafe TextAsset achievementText
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.NativeFieldInfoPtr_achievementText);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new TextAsset(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.NativeFieldInfoPtr_achievementText), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001CD5 RID: 7381
	// (get) Token: 0x06005090 RID: 20624 RVA: 0x00140D44 File Offset: 0x0013EF44
	// (set) Token: 0x06005091 RID: 20625 RVA: 0x00140D78 File Offset: 0x0013EF78
	public unsafe TextAsset storyText
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.NativeFieldInfoPtr_storyText);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new TextAsset(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.NativeFieldInfoPtr_storyText), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001CD6 RID: 7382
	// (get) Token: 0x06005092 RID: 20626 RVA: 0x00140DA0 File Offset: 0x0013EFA0
	// (set) Token: 0x06005093 RID: 20627 RVA: 0x00140DD4 File Offset: 0x0013EFD4
	public unsafe TextAsset combatDialogue
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.NativeFieldInfoPtr_combatDialogue);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new TextAsset(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.NativeFieldInfoPtr_combatDialogue), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001CD7 RID: 7383
	// (get) Token: 0x06005094 RID: 20628 RVA: 0x00140DFC File Offset: 0x0013EFFC
	// (set) Token: 0x06005095 RID: 20629 RVA: 0x00140E30 File Offset: 0x0013F030
	public unsafe TextAsset itemVoice
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.NativeFieldInfoPtr_itemVoice);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new TextAsset(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.NativeFieldInfoPtr_itemVoice), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001CD8 RID: 7384
	// (get) Token: 0x06005096 RID: 20630 RVA: 0x00140E58 File Offset: 0x0013F058
	// (set) Token: 0x06005097 RID: 20631 RVA: 0x00140E8C File Offset: 0x0013F08C
	public unsafe TextAsset videoText
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.NativeFieldInfoPtr_videoText);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new TextAsset(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.NativeFieldInfoPtr_videoText), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x0400355D RID: 13661
	private static readonly IntPtr NativeFieldInfoPtr_systemText;

	// Token: 0x0400355E RID: 13662
	private static readonly IntPtr NativeFieldInfoPtr_valuableText;

	// Token: 0x0400355F RID: 13663
	private static readonly IntPtr NativeFieldInfoPtr_gameTipText;

	// Token: 0x04003560 RID: 13664
	private static readonly IntPtr NativeFieldInfoPtr_achievementText;

	// Token: 0x04003561 RID: 13665
	private static readonly IntPtr NativeFieldInfoPtr_storyText;

	// Token: 0x04003562 RID: 13666
	private static readonly IntPtr NativeFieldInfoPtr_combatDialogue;

	// Token: 0x04003563 RID: 13667
	private static readonly IntPtr NativeFieldInfoPtr_itemVoice;

	// Token: 0x04003564 RID: 13668
	private static readonly IntPtr NativeFieldInfoPtr_videoText;

	// Token: 0x04003565 RID: 13669
	private static readonly IntPtr NativeMethodInfoPtr_UpdateJsonAssets_Public_Void_Il2CppReferenceArray_1_TextAsset_0;

	// Token: 0x04003566 RID: 13670
	private static readonly IntPtr NativeMethodInfoPtr_GetAsset_Private_TextAsset_Il2CppReferenceArray_1_TextAsset_String_0;

	// Token: 0x04003567 RID: 13671
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

	// Token: 0x02000227 RID: 551
	[ObfuscatedName("GameJsonContainer/<>c__DisplayClass9_0")]
	public sealed class __c__DisplayClass9_0 : Il2CppSystem.Object
	{
		// Token: 0x06005098 RID: 20632 RVA: 0x00140EB4 File Offset: 0x0013F0B4
		[CallerCount(1642)]
		[CachedScanResults(RefRangeStart = 7417, RefRangeEnd = 9059, XrefRangeStart = 7417, XrefRangeEnd = 9059, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe __c__DisplayClass9_0()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<GameJsonContainer.__c__DisplayClass9_0>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GameJsonContainer.__c__DisplayClass9_0.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06005099 RID: 20633 RVA: 0x00140F00 File Offset: 0x0013F100
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 551694, XrefRangeEnd = 551697, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe bool _GetAsset_b__0(TextAsset asset)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(asset);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GameJsonContainer.__c__DisplayClass9_0.NativeMethodInfoPtr__GetAsset_b__0_Internal_Boolean_TextAsset_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x0600509A RID: 20634 RVA: 0x00140F68 File Offset: 0x0013F168
		// Note: this type is marked as 'beforefieldinit'.
		static __c__DisplayClass9_0()
		{
			Il2CppClassPointerStore<GameJsonContainer.__c__DisplayClass9_0>.NativeClassPtr = IL2CPP.GetIl2CppNestedType(Il2CppClassPointerStore<GameJsonContainer>.NativeClassPtr, "<>c__DisplayClass9_0");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<GameJsonContainer.__c__DisplayClass9_0>.NativeClassPtr);
			GameJsonContainer.__c__DisplayClass9_0.NativeFieldInfoPtr_name = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GameJsonContainer.__c__DisplayClass9_0>.NativeClassPtr, "name");
			GameJsonContainer.__c__DisplayClass9_0.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameJsonContainer.__c__DisplayClass9_0>.NativeClassPtr, 100668667);
			GameJsonContainer.__c__DisplayClass9_0.NativeMethodInfoPtr__GetAsset_b__0_Internal_Boolean_TextAsset_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GameJsonContainer.__c__DisplayClass9_0>.NativeClassPtr, 100668668);
		}

		// Token: 0x0600509B RID: 20635 RVA: 0x0000A688 File Offset: 0x00008888
		public __c__DisplayClass9_0(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17001CD9 RID: 7385
		// (get) Token: 0x0600509C RID: 20636 RVA: 0x00140FD0 File Offset: 0x0013F1D0
		// (set) Token: 0x0600509D RID: 20637 RVA: 0x00140FF9 File Offset: 0x0013F1F9
		public unsafe string name
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GameJsonContainer.__c__DisplayClass9_0.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(GameJsonContainer.__c__DisplayClass9_0.NativeFieldInfoPtr_name), IL2CPP.ManagedStringToIl2Cpp(value));
			}
		}

		// Token: 0x04003568 RID: 13672
		private static readonly IntPtr NativeFieldInfoPtr_name;

		// Token: 0x04003569 RID: 13673
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x0400356A RID: 13674
		private static readonly IntPtr NativeMethodInfoPtr__GetAsset_b__0_Internal_Boolean_TextAsset_0;
	}
}
