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

namespace commanastationwww.multistorydungeons
{
	// Token: 0x02000594 RID: 1428
	public class FPScounter : MonoBehaviour
	{
		// Token: 0x06009802 RID: 38914 RVA: 0x00270664 File Offset: 0x0026E864
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 617687, XrefRangeEnd = 617691, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FPScounter.NativeMethodInfoPtr_Start_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009803 RID: 38915 RVA: 0x002706A8 File Offset: 0x0026E8A8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 617691, XrefRangeEnd = 617700, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FPScounter.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009804 RID: 38916 RVA: 0x002706EC File Offset: 0x0026E8EC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe FPScounter()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<FPScounter>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FPScounter.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009805 RID: 38917 RVA: 0x00270738 File Offset: 0x0026E938
		// Note: this type is marked as 'beforefieldinit'.
		static FPScounter()
		{
			Il2CppClassPointerStore<FPScounter>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "commanastationwww.multistorydungeons", "FPScounter");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<FPScounter>.NativeClassPtr);
			FPScounter.NativeFieldInfoPtr_updateInterval = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FPScounter>.NativeClassPtr, "updateInterval");
			FPScounter.NativeFieldInfoPtr_accum = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FPScounter>.NativeClassPtr, "accum");
			FPScounter.NativeFieldInfoPtr_frames = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FPScounter>.NativeClassPtr, "frames");
			FPScounter.NativeFieldInfoPtr_timeleft = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FPScounter>.NativeClassPtr, "timeleft");
			FPScounter.NativeFieldInfoPtr_textFpsCounter = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FPScounter>.NativeClassPtr, "textFpsCounter");
			FPScounter.NativeMethodInfoPtr_Start_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FPScounter>.NativeClassPtr, 100675122);
			FPScounter.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FPScounter>.NativeClassPtr, 100675123);
			FPScounter.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FPScounter>.NativeClassPtr, 100675124);
		}

		// Token: 0x06009806 RID: 38918 RVA: 0x0000351C File Offset: 0x0000171C
		public FPScounter(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003374 RID: 13172
		// (get) Token: 0x06009807 RID: 38919 RVA: 0x00270808 File Offset: 0x0026EA08
		// (set) Token: 0x06009808 RID: 38920 RVA: 0x00270830 File Offset: 0x0026EA30
		public unsafe float updateInterval
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPScounter.NativeFieldInfoPtr_updateInterval);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPScounter.NativeFieldInfoPtr_updateInterval)) = value;
			}
		}

		// Token: 0x17003375 RID: 13173
		// (get) Token: 0x06009809 RID: 38921 RVA: 0x00270854 File Offset: 0x0026EA54
		// (set) Token: 0x0600980A RID: 38922 RVA: 0x0027087C File Offset: 0x0026EA7C
		public unsafe float accum
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPScounter.NativeFieldInfoPtr_accum);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPScounter.NativeFieldInfoPtr_accum)) = value;
			}
		}

		// Token: 0x17003376 RID: 13174
		// (get) Token: 0x0600980B RID: 38923 RVA: 0x002708A0 File Offset: 0x0026EAA0
		// (set) Token: 0x0600980C RID: 38924 RVA: 0x002708C8 File Offset: 0x0026EAC8
		public unsafe int frames
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPScounter.NativeFieldInfoPtr_frames);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPScounter.NativeFieldInfoPtr_frames)) = value;
			}
		}

		// Token: 0x17003377 RID: 13175
		// (get) Token: 0x0600980D RID: 38925 RVA: 0x002708EC File Offset: 0x0026EAEC
		// (set) Token: 0x0600980E RID: 38926 RVA: 0x00270914 File Offset: 0x0026EB14
		public unsafe float timeleft
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPScounter.NativeFieldInfoPtr_timeleft);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPScounter.NativeFieldInfoPtr_timeleft)) = value;
			}
		}

		// Token: 0x17003378 RID: 13176
		// (get) Token: 0x0600980F RID: 38927 RVA: 0x00270938 File Offset: 0x0026EB38
		// (set) Token: 0x06009810 RID: 38928 RVA: 0x0027096C File Offset: 0x0026EB6C
		public unsafe Text textFpsCounter
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPScounter.NativeFieldInfoPtr_textFpsCounter);
				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(FPScounter.NativeFieldInfoPtr_textFpsCounter), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x040065FC RID: 26108
		private static readonly IntPtr NativeFieldInfoPtr_updateInterval;

		// Token: 0x040065FD RID: 26109
		private static readonly IntPtr NativeFieldInfoPtr_accum;

		// Token: 0x040065FE RID: 26110
		private static readonly IntPtr NativeFieldInfoPtr_frames;

		// Token: 0x040065FF RID: 26111
		private static readonly IntPtr NativeFieldInfoPtr_timeleft;

		// Token: 0x04006600 RID: 26112
		private static readonly IntPtr NativeFieldInfoPtr_textFpsCounter;

		// Token: 0x04006601 RID: 26113
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x04006602 RID: 26114
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x04006603 RID: 26115
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
