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

namespace commanastationwww.eternaltemple
{
	// Token: 0x0200059A RID: 1434
	public class FPScounter : MonoBehaviour
	{
		// Token: 0x0600985F RID: 39007 RVA: 0x00271CEC File Offset: 0x0026FEEC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 617840, XrefRangeEnd = 617844, 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: 0x06009860 RID: 39008 RVA: 0x00271D30 File Offset: 0x0026FF30
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 617844, XrefRangeEnd = 617853, 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: 0x06009861 RID: 39009 RVA: 0x00271D74 File Offset: 0x0026FF74
		[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: 0x06009862 RID: 39010 RVA: 0x00271DC0 File Offset: 0x0026FFC0
		// 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, 100675151);
			FPScounter.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FPScounter>.NativeClassPtr, 100675152);
			FPScounter.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FPScounter>.NativeClassPtr, 100675153);
		}

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

		// Token: 0x17003392 RID: 13202
		// (get) Token: 0x06009864 RID: 39012 RVA: 0x00271E90 File Offset: 0x00270090
		// (set) Token: 0x06009865 RID: 39013 RVA: 0x00271EB8 File Offset: 0x002700B8
		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: 0x17003393 RID: 13203
		// (get) Token: 0x06009866 RID: 39014 RVA: 0x00271EDC File Offset: 0x002700DC
		// (set) Token: 0x06009867 RID: 39015 RVA: 0x00271F04 File Offset: 0x00270104
		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: 0x17003394 RID: 13204
		// (get) Token: 0x06009868 RID: 39016 RVA: 0x00271F28 File Offset: 0x00270128
		// (set) Token: 0x06009869 RID: 39017 RVA: 0x00271F50 File Offset: 0x00270150
		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: 0x17003395 RID: 13205
		// (get) Token: 0x0600986A RID: 39018 RVA: 0x00271F74 File Offset: 0x00270174
		// (set) Token: 0x0600986B RID: 39019 RVA: 0x00271F9C File Offset: 0x0027019C
		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: 0x17003396 RID: 13206
		// (get) Token: 0x0600986C RID: 39020 RVA: 0x00271FC0 File Offset: 0x002701C0
		// (set) Token: 0x0600986D RID: 39021 RVA: 0x00271FF4 File Offset: 0x002701F4
		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: 0x04006633 RID: 26163
		private static readonly IntPtr NativeFieldInfoPtr_updateInterval;

		// Token: 0x04006634 RID: 26164
		private static readonly IntPtr NativeFieldInfoPtr_accum;

		// Token: 0x04006635 RID: 26165
		private static readonly IntPtr NativeFieldInfoPtr_frames;

		// Token: 0x04006636 RID: 26166
		private static readonly IntPtr NativeFieldInfoPtr_timeleft;

		// Token: 0x04006637 RID: 26167
		private static readonly IntPtr NativeFieldInfoPtr_textFpsCounter;

		// Token: 0x04006638 RID: 26168
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x04006639 RID: 26169
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x0400663A RID: 26170
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
