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

namespace Obi
{
	// Token: 0x020004FA RID: 1274
	public class ObiParticleGridDebugger : MonoBehaviour
	{
		// Token: 0x0600917E RID: 37246 RVA: 0x00256EE0 File Offset: 0x002550E0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 613133, XrefRangeEnd = 613145, 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: 0x0600917F RID: 37247 RVA: 0x00256F24 File Offset: 0x00255124
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 613145, XrefRangeEnd = 613153, 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: 0x06009180 RID: 37248 RVA: 0x00256F68 File Offset: 0x00255168
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 613153, XrefRangeEnd = 613160, 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: 0x06009181 RID: 37249 RVA: 0x00256FDC File Offset: 0x002551DC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 613160, XrefRangeEnd = 613166, 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: 0x06009182 RID: 37250 RVA: 0x00257020 File Offset: 0x00255220
		[CallerCount(63)]
		[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, 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: 0x06009183 RID: 37251 RVA: 0x0025706C File Offset: 0x0025526C
		// 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, 100674591);
			ObiParticleGridDebugger.NativeMethodInfoPtr_OnDisable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleGridDebugger>.NativeClassPtr, 100674592);
			ObiParticleGridDebugger.NativeMethodInfoPtr_Solver_OnFrameEnd_Private_Void_Object_EventArgs_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleGridDebugger>.NativeClassPtr, 100674593);
			ObiParticleGridDebugger.NativeMethodInfoPtr_OnDrawGizmos_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleGridDebugger>.NativeClassPtr, 100674594);
			ObiParticleGridDebugger.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiParticleGridDebugger>.NativeClassPtr, 100674595);
		}

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

		// Token: 0x17003155 RID: 12629
		// (get) Token: 0x06009185 RID: 37253 RVA: 0x00257128 File Offset: 0x00255328
		// (set) Token: 0x06009186 RID: 37254 RVA: 0x0025715C File Offset: 0x0025535C
		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: 0x17003156 RID: 12630
		// (get) Token: 0x06009187 RID: 37255 RVA: 0x00257184 File Offset: 0x00255384
		// (set) Token: 0x06009188 RID: 37256 RVA: 0x002571B8 File Offset: 0x002553B8
		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: 0x04006100 RID: 24832
		private static readonly IntPtr NativeFieldInfoPtr_solver;

		// Token: 0x04006101 RID: 24833
		private static readonly IntPtr NativeFieldInfoPtr_cells;

		// Token: 0x04006102 RID: 24834
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Private_Void_0;

		// Token: 0x04006103 RID: 24835
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Private_Void_0;

		// Token: 0x04006104 RID: 24836
		private static readonly IntPtr NativeMethodInfoPtr_Solver_OnFrameEnd_Private_Void_Object_EventArgs_0;

		// Token: 0x04006105 RID: 24837
		private static readonly IntPtr NativeMethodInfoPtr_OnDrawGizmos_Private_Void_0;

		// Token: 0x04006106 RID: 24838
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
