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

namespace commanastationwww.multistorydungeons
{
	// Token: 0x020005EC RID: 1516
	public class FPScounter : MonoBehaviour
	{
		// Token: 0x0600A055 RID: 41045 RVA: 0x002933A0 File Offset: 0x002915A0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 649968, XrefRangeEnd = 649972, 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: 0x0600A056 RID: 41046 RVA: 0x002933E4 File Offset: 0x002915E4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 649972, XrefRangeEnd = 649981, 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: 0x0600A057 RID: 41047 RVA: 0x00293428 File Offset: 0x00291628
		[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: 0x0600A058 RID: 41048 RVA: 0x00293474 File Offset: 0x00291674
		// 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, 100675835);
			FPScounter.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FPScounter>.NativeClassPtr, 100675836);
			FPScounter.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FPScounter>.NativeClassPtr, 100675837);
		}

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

		// Token: 0x1700360F RID: 13839
		// (get) Token: 0x0600A05A RID: 41050 RVA: 0x00293544 File Offset: 0x00291744
		// (set) Token: 0x0600A05B RID: 41051 RVA: 0x0029356C File Offset: 0x0029176C
		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: 0x17003610 RID: 13840
		// (get) Token: 0x0600A05C RID: 41052 RVA: 0x00293590 File Offset: 0x00291790
		// (set) Token: 0x0600A05D RID: 41053 RVA: 0x002935B8 File Offset: 0x002917B8
		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: 0x17003611 RID: 13841
		// (get) Token: 0x0600A05E RID: 41054 RVA: 0x002935DC File Offset: 0x002917DC
		// (set) Token: 0x0600A05F RID: 41055 RVA: 0x00293604 File Offset: 0x00291804
		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: 0x17003612 RID: 13842
		// (get) Token: 0x0600A060 RID: 41056 RVA: 0x00293628 File Offset: 0x00291828
		// (set) Token: 0x0600A061 RID: 41057 RVA: 0x00293650 File Offset: 0x00291850
		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: 0x17003613 RID: 13843
		// (get) Token: 0x0600A062 RID: 41058 RVA: 0x00293674 File Offset: 0x00291874
		// (set) Token: 0x0600A063 RID: 41059 RVA: 0x002936A8 File Offset: 0x002918A8
		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: 0x04006BA5 RID: 27557
		private static readonly IntPtr NativeFieldInfoPtr_updateInterval;

		// Token: 0x04006BA6 RID: 27558
		private static readonly IntPtr NativeFieldInfoPtr_accum;

		// Token: 0x04006BA7 RID: 27559
		private static readonly IntPtr NativeFieldInfoPtr_frames;

		// Token: 0x04006BA8 RID: 27560
		private static readonly IntPtr NativeFieldInfoPtr_timeleft;

		// Token: 0x04006BA9 RID: 27561
		private static readonly IntPtr NativeFieldInfoPtr_textFpsCounter;

		// Token: 0x04006BAA RID: 27562
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x04006BAB RID: 27563
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x04006BAC RID: 27564
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
