using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppSystem;
using Obi;
using UnityEngine;

// Token: 0x02000365 RID: 869
public class CollisionEventHandler : MonoBehaviour
{
	// Token: 0x060071AA RID: 29098 RVA: 0x001CCE34 File Offset: 0x001CB034
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 585743, XrefRangeEnd = 585747, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Awake()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CollisionEventHandler.NativeMethodInfoPtr_Awake_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060071AB RID: 29099 RVA: 0x001CCE78 File Offset: 0x001CB078
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 585747, XrefRangeEnd = 585757, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void OnEnable()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CollisionEventHandler.NativeMethodInfoPtr_OnEnable_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060071AC RID: 29100 RVA: 0x001CCEBC File Offset: 0x001CB0BC
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 585757, XrefRangeEnd = 585767, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void OnDisable()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CollisionEventHandler.NativeMethodInfoPtr_OnDisable_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060071AD RID: 29101 RVA: 0x001CCF00 File Offset: 0x001CB100
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 585767, XrefRangeEnd = 585768, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Solver_OnCollision(Il2CppSystem.Object sender, ObiSolver.ObiCollisionEventArgs 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(CollisionEventHandler.NativeMethodInfoPtr_Solver_OnCollision_Private_Void_Object_ObiCollisionEventArgs_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060071AE RID: 29102 RVA: 0x001CCF74 File Offset: 0x001CB174
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 585768, XrefRangeEnd = 585784, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void OnDrawGizmos()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CollisionEventHandler.NativeMethodInfoPtr_OnDrawGizmos_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060071AF RID: 29103 RVA: 0x001CCFB8 File Offset: 0x001CB1B8
	[CallerCount(63)]
	[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe CollisionEventHandler()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<CollisionEventHandler>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CollisionEventHandler.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060071B0 RID: 29104 RVA: 0x001CD004 File Offset: 0x001CB204
	// Note: this type is marked as 'beforefieldinit'.
	static CollisionEventHandler()
	{
		Il2CppClassPointerStore<CollisionEventHandler>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "CollisionEventHandler");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<CollisionEventHandler>.NativeClassPtr);
		CollisionEventHandler.NativeFieldInfoPtr_solver = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CollisionEventHandler>.NativeClassPtr, "solver");
		CollisionEventHandler.NativeFieldInfoPtr_frame = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CollisionEventHandler>.NativeClassPtr, "frame");
		CollisionEventHandler.NativeMethodInfoPtr_Awake_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CollisionEventHandler>.NativeClassPtr, 100671746);
		CollisionEventHandler.NativeMethodInfoPtr_OnEnable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CollisionEventHandler>.NativeClassPtr, 100671747);
		CollisionEventHandler.NativeMethodInfoPtr_OnDisable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CollisionEventHandler>.NativeClassPtr, 100671748);
		CollisionEventHandler.NativeMethodInfoPtr_Solver_OnCollision_Private_Void_Object_ObiCollisionEventArgs_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CollisionEventHandler>.NativeClassPtr, 100671749);
		CollisionEventHandler.NativeMethodInfoPtr_OnDrawGizmos_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CollisionEventHandler>.NativeClassPtr, 100671750);
		CollisionEventHandler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CollisionEventHandler>.NativeClassPtr, 100671751);
	}

	// Token: 0x060071B1 RID: 29105 RVA: 0x0000351C File Offset: 0x0000171C
	public CollisionEventHandler(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17002730 RID: 10032
	// (get) Token: 0x060071B2 RID: 29106 RVA: 0x001CD0D4 File Offset: 0x001CB2D4
	// (set) Token: 0x060071B3 RID: 29107 RVA: 0x001CD108 File Offset: 0x001CB308
	public unsafe ObiSolver solver
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CollisionEventHandler.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(CollisionEventHandler.NativeFieldInfoPtr_solver), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17002731 RID: 10033
	// (get) Token: 0x060071B4 RID: 29108 RVA: 0x001CD130 File Offset: 0x001CB330
	// (set) Token: 0x060071B5 RID: 29109 RVA: 0x001CD164 File Offset: 0x001CB364
	public unsafe ObiSolver.ObiCollisionEventArgs frame
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CollisionEventHandler.NativeFieldInfoPtr_frame);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new ObiSolver.ObiCollisionEventArgs(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(CollisionEventHandler.NativeFieldInfoPtr_frame), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04004B65 RID: 19301
	private static readonly IntPtr NativeFieldInfoPtr_solver;

	// Token: 0x04004B66 RID: 19302
	private static readonly IntPtr NativeFieldInfoPtr_frame;

	// Token: 0x04004B67 RID: 19303
	private static readonly IntPtr NativeMethodInfoPtr_Awake_Private_Void_0;

	// Token: 0x04004B68 RID: 19304
	private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Private_Void_0;

	// Token: 0x04004B69 RID: 19305
	private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Private_Void_0;

	// Token: 0x04004B6A RID: 19306
	private static readonly IntPtr NativeMethodInfoPtr_Solver_OnCollision_Private_Void_Object_ObiCollisionEventArgs_0;

	// Token: 0x04004B6B RID: 19307
	private static readonly IntPtr NativeMethodInfoPtr_OnDrawGizmos_Private_Void_0;

	// Token: 0x04004B6C RID: 19308
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
