using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppSystem;

// Token: 0x02000145 RID: 325
[Serializable]
public class AchievementData : Object
{
	// Token: 0x17001789 RID: 6025
	// (get) Token: 0x0600403F RID: 16447 RVA: 0x000FF324 File Offset: 0x000FD524
	public unsafe bool HasUnlocked
	{
		[CallerCount(0)]
		get
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AchievementData.NativeMethodInfoPtr_get_HasUnlocked_Public_get_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}
	}

	// Token: 0x06004040 RID: 16448 RVA: 0x000FF374 File Offset: 0x000FD574
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 554006, RefRangeEnd = 554008, XrefRangeStart = 554005, XrefRangeEnd = 554006, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe AchievementData(GameAchievement id, bool unlocked)
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<AchievementData>.NativeClassPtr))
	{
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref id;
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref unlocked;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AchievementData.NativeMethodInfoPtr__ctor_Public_Void_GameAchievement_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06004041 RID: 16449 RVA: 0x000FF3E4 File Offset: 0x000FD5E4
	[CallerCount(3)]
	[CachedScanResults(RefRangeStart = 348312, RefRangeEnd = 348315, XrefRangeStart = 348312, XrefRangeEnd = 348315, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Unlock()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AchievementData.NativeMethodInfoPtr_Unlock_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06004042 RID: 16450 RVA: 0x000FF428 File Offset: 0x000FD628
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 554008, RefRangeEnd = 554009, XrefRangeStart = 554008, XrefRangeEnd = 554008, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Lock()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AchievementData.NativeMethodInfoPtr_Lock_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06004043 RID: 16451 RVA: 0x000FF46C File Offset: 0x000FD66C
	// Note: this type is marked as 'beforefieldinit'.
	static AchievementData()
	{
		Il2CppClassPointerStore<AchievementData>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "AchievementData");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<AchievementData>.NativeClassPtr);
		AchievementData.NativeFieldInfoPtr_id = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<AchievementData>.NativeClassPtr, "id");
		AchievementData.NativeFieldInfoPtr_unlocked = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<AchievementData>.NativeClassPtr, "unlocked");
		AchievementData.NativeMethodInfoPtr_get_HasUnlocked_Public_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AchievementData>.NativeClassPtr, 100667367);
		AchievementData.NativeMethodInfoPtr__ctor_Public_Void_GameAchievement_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AchievementData>.NativeClassPtr, 100667368);
		AchievementData.NativeMethodInfoPtr_Unlock_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AchievementData>.NativeClassPtr, 100667369);
		AchievementData.NativeMethodInfoPtr_Lock_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AchievementData>.NativeClassPtr, 100667370);
	}

	// Token: 0x06004044 RID: 16452 RVA: 0x0000A74C File Offset: 0x0000894C
	public AchievementData(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001787 RID: 6023
	// (get) Token: 0x06004045 RID: 16453 RVA: 0x000FF514 File Offset: 0x000FD714
	// (set) Token: 0x06004046 RID: 16454 RVA: 0x000FF53C File Offset: 0x000FD73C
	public unsafe GameAchievement id
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AchievementData.NativeFieldInfoPtr_id);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AchievementData.NativeFieldInfoPtr_id)) = value;
		}
	}

	// Token: 0x17001788 RID: 6024
	// (get) Token: 0x06004047 RID: 16455 RVA: 0x000FF560 File Offset: 0x000FD760
	// (set) Token: 0x06004048 RID: 16456 RVA: 0x000FF588 File Offset: 0x000FD788
	public unsafe bool unlocked
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AchievementData.NativeFieldInfoPtr_unlocked);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AchievementData.NativeFieldInfoPtr_unlocked)) = value;
		}
	}

	// Token: 0x04002A21 RID: 10785
	private static readonly IntPtr NativeFieldInfoPtr_id;

	// Token: 0x04002A22 RID: 10786
	private static readonly IntPtr NativeFieldInfoPtr_unlocked;

	// Token: 0x04002A23 RID: 10787
	private static readonly IntPtr NativeMethodInfoPtr_get_HasUnlocked_Public_get_Boolean_0;

	// Token: 0x04002A24 RID: 10788
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_GameAchievement_Boolean_0;

	// Token: 0x04002A25 RID: 10789
	private static readonly IntPtr NativeMethodInfoPtr_Unlock_Public_Void_0;

	// Token: 0x04002A26 RID: 10790
	private static readonly IntPtr NativeMethodInfoPtr_Lock_Public_Void_0;
}
