using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using Il2CppSystem;
using UnityEngine;

namespace Obi
{
	// Token: 0x02000552 RID: 1362
	public class ObiParticleGridDebugger : MonoBehaviour
	{
		// Token: 0x060099D1 RID: 39377 RVA: 0x00279C1C File Offset: 0x00277E1C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645443, XrefRangeEnd = 645455, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnEnable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiParticleGridDebugger.NativeMethodInfoPtr_OnEnable_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060099D2 RID: 39378 RVA: 0x00279C60 File Offset: 0x00277E60
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645455, XrefRangeEnd = 645463, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnDisable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiParticleGridDebugger.NativeMethodInfoPtr_OnDisable_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060099D3 RID: 39379 RVA: 0x00279CA4 File Offset: 0x00277EA4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645463, XrefRangeEnd = 645470, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Solver_OnFrameEnd(Il2CppSystem.Object sender, EventArgs e)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(sender);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(e);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiParticleGridDebugger.NativeMethodInfoPtr_Solver_OnFrameEnd_Private_Void_Object_EventArgs_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060099D4 RID: 39380 RVA: 0x00279D18 File Offset: 0x00277F18
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 645470, XrefRangeEnd = 645476, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnDrawGizmos()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiParticleGridDebugger.NativeMethodInfoPtr_OnDrawGizmos_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060099D5 RID: 39381 RVA: 0x00279D5C File Offset: 0x00277F5C
		[CallerCount(67)]
		[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ObiParticleGridDebugger()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ObiParticleGridDebugger>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiParticleGridDebugger.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x060099D6 RID: 39382 RVA: 0x00279DA8 File Offset: 0x00277FA8
		// Note: this type is marked as 'beforefieldinit'.
		static ObiParticleGridDebugger()
		{
			Il2CppClassPointerStore<ObiParticleGridDebugger>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "ObiParticleGridDebugger");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ObiParticleGridDebugger>.NativeClassPtr);
			ObiParticleGridDebugger.NativeFieldInfoPtr_solver = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiParticleGridDebugger>.NativeClassPtr, "solver");
			ObiParticleGridDebugger.NativeFieldInfoPtr_cells = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiParticleGridDebugger>.NativeClassPtr, "cells");
			ObiParticleGridDebugger.NativeMethodInfoPtr_OnEnable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleGridDebugger>.NativeClassPtr, 100675304);
			ObiParticleGridDebugger.NativeMethodInfoPtr_OnDisable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleGridDebugger>.NativeClassPtr, 100675305);
			ObiParticleGridDebugger.NativeMethodInfoPtr_Solver_OnFrameEnd_Private_Void_Object_EventArgs_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleGridDebugger>.NativeClassPtr, 100675306);
			ObiParticleGridDebugger.NativeMethodInfoPtr_OnDrawGizmos_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleGridDebugger>.NativeClassPtr, 100675307);
			ObiParticleGridDebugger.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleGridDebugger>.NativeClassPtr, 100675308);
		}

		// Token: 0x060099D7 RID: 39383 RVA: 0x0000351C File Offset: 0x0000171C
		public ObiParticleGridDebugger(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170033F0 RID: 13296
		// (get) Token: 0x060099D8 RID: 39384 RVA: 0x00279E64 File Offset: 0x00278064
		// (set) Token: 0x060099D9 RID: 39385 RVA: 0x00279E98 File Offset: 0x00278098
		public unsafe ObiSolver solver
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiParticleGridDebugger.NativeFieldInfoPtr_solver);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new ObiSolver(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiParticleGridDebugger.NativeFieldInfoPtr_solver), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x170033F1 RID: 13297
		// (get) Token: 0x060099DA RID: 39386 RVA: 0x00279EC0 File Offset: 0x002780C0
		// (set) Token: 0x060099DB RID: 39387 RVA: 0x00279EF4 File Offset: 0x002780F4
		public unsafe Il2CppStructArray<Oni.GridCell> cells
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiParticleGridDebugger.NativeFieldInfoPtr_cells);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Il2CppStructArray<Oni.GridCell>(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiParticleGridDebugger.NativeFieldInfoPtr_cells), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x040066A9 RID: 26281
		private static readonly IntPtr NativeFieldInfoPtr_solver;

		// Token: 0x040066AA RID: 26282
		private static readonly IntPtr NativeFieldInfoPtr_cells;

		// Token: 0x040066AB RID: 26283
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Private_Void_0;

		// Token: 0x040066AC RID: 26284
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Private_Void_0;

		// Token: 0x040066AD RID: 26285
		private static readonly IntPtr NativeMethodInfoPtr_Solver_OnFrameEnd_Private_Void_Object_EventArgs_0;

		// Token: 0x040066AE RID: 26286
		private static readonly IntPtr NativeMethodInfoPtr_OnDrawGizmos_Private_Void_0;

		// Token: 0x040066AF RID: 26287
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
