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

namespace commanastationwww.eternaltemple
{
	// Token: 0x020005F2 RID: 1522
	public class FPScounter : MonoBehaviour
	{
		// Token: 0x0600A0B2 RID: 41138 RVA: 0x00294A28 File Offset: 0x00292C28
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 650121, XrefRangeEnd = 650125, 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: 0x0600A0B3 RID: 41139 RVA: 0x00294A6C File Offset: 0x00292C6C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 650125, XrefRangeEnd = 650134, 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: 0x0600A0B4 RID: 41140 RVA: 0x00294AB0 File Offset: 0x00292CB0
		[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: 0x0600A0B5 RID: 41141 RVA: 0x00294AFC File Offset: 0x00292CFC
		// Note: this type is marked as 'beforefieldinit'.
		static FPScounter()
		{
			Il2CppClassPointerStore<FPScounter>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "commanastationwww.eternaltemple", "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, 100675864);
			FPScounter.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FPScounter>.NativeClassPtr, 100675865);
			FPScounter.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FPScounter>.NativeClassPtr, 100675866);
		}

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

		// Token: 0x1700362D RID: 13869
		// (get) Token: 0x0600A0B7 RID: 41143 RVA: 0x00294BCC File Offset: 0x00292DCC
		// (set) Token: 0x0600A0B8 RID: 41144 RVA: 0x00294BF4 File Offset: 0x00292DF4
		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: 0x1700362E RID: 13870
		// (get) Token: 0x0600A0B9 RID: 41145 RVA: 0x00294C18 File Offset: 0x00292E18
		// (set) Token: 0x0600A0BA RID: 41146 RVA: 0x00294C40 File Offset: 0x00292E40
		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: 0x1700362F RID: 13871
		// (get) Token: 0x0600A0BB RID: 41147 RVA: 0x00294C64 File Offset: 0x00292E64
		// (set) Token: 0x0600A0BC RID: 41148 RVA: 0x00294C8C File Offset: 0x00292E8C
		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: 0x17003630 RID: 13872
		// (get) Token: 0x0600A0BD RID: 41149 RVA: 0x00294CB0 File Offset: 0x00292EB0
		// (set) Token: 0x0600A0BE RID: 41150 RVA: 0x00294CD8 File Offset: 0x00292ED8
		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: 0x17003631 RID: 13873
		// (get) Token: 0x0600A0BF RID: 41151 RVA: 0x00294CFC File Offset: 0x00292EFC
		// (set) Token: 0x0600A0C0 RID: 41152 RVA: 0x00294D30 File Offset: 0x00292F30
		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: 0x04006BDC RID: 27612
		private static readonly IntPtr NativeFieldInfoPtr_updateInterval;

		// Token: 0x04006BDD RID: 27613
		private static readonly IntPtr NativeFieldInfoPtr_accum;

		// Token: 0x04006BDE RID: 27614
		private static readonly IntPtr NativeFieldInfoPtr_frames;

		// Token: 0x04006BDF RID: 27615
		private static readonly IntPtr NativeFieldInfoPtr_timeleft;

		// Token: 0x04006BE0 RID: 27616
		private static readonly IntPtr NativeFieldInfoPtr_textFpsCounter;

		// Token: 0x04006BE1 RID: 27617
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x04006BE2 RID: 27618
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x04006BE3 RID: 27619
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
