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

// Token: 0x020003BD RID: 957
public class CollisionEventHandler : MonoBehaviour
{
	// Token: 0x060079FD RID: 31229 RVA: 0x001EFB7C File Offset: 0x001EDD7C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 618044, XrefRangeEnd = 618048, 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: 0x060079FE RID: 31230 RVA: 0x001EFBC0 File Offset: 0x001EDDC0
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 618048, XrefRangeEnd = 618058, 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: 0x060079FF RID: 31231 RVA: 0x001EFC04 File Offset: 0x001EDE04
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 618058, XrefRangeEnd = 618068, 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: 0x06007A00 RID: 31232 RVA: 0x001EFC48 File Offset: 0x001EDE48
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 618068, XrefRangeEnd = 618069, 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: 0x06007A01 RID: 31233 RVA: 0x001EFCBC File Offset: 0x001EDEBC
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 618069, XrefRangeEnd = 618085, 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: 0x06007A02 RID: 31234 RVA: 0x001EFD00 File Offset: 0x001EDF00
	[CallerCount(67)]
	[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, 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: 0x06007A03 RID: 31235 RVA: 0x001EFD4C File Offset: 0x001EDF4C
	// 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, 100672459);
		CollisionEventHandler.NativeMethodInfoPtr_OnEnable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CollisionEventHandler>.NativeClassPtr, 100672460);
		CollisionEventHandler.NativeMethodInfoPtr_OnDisable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CollisionEventHandler>.NativeClassPtr, 100672461);
		CollisionEventHandler.NativeMethodInfoPtr_Solver_OnCollision_Private_Void_Object_ObiCollisionEventArgs_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CollisionEventHandler>.NativeClassPtr, 100672462);
		CollisionEventHandler.NativeMethodInfoPtr_OnDrawGizmos_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CollisionEventHandler>.NativeClassPtr, 100672463);
		CollisionEventHandler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CollisionEventHandler>.NativeClassPtr, 100672464);
	}

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

	// Token: 0x170029CB RID: 10699
	// (get) Token: 0x06007A05 RID: 31237 RVA: 0x001EFE1C File Offset: 0x001EE01C
	// (set) Token: 0x06007A06 RID: 31238 RVA: 0x001EFE50 File Offset: 0x001EE050
	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: 0x170029CC RID: 10700
	// (get) Token: 0x06007A07 RID: 31239 RVA: 0x001EFE78 File Offset: 0x001EE078
	// (set) Token: 0x06007A08 RID: 31240 RVA: 0x001EFEAC File Offset: 0x001EE0AC
	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: 0x0400510E RID: 20750
	private static readonly IntPtr NativeFieldInfoPtr_solver;

	// Token: 0x0400510F RID: 20751
	private static readonly IntPtr NativeFieldInfoPtr_frame;

	// Token: 0x04005110 RID: 20752
	private static readonly IntPtr NativeMethodInfoPtr_Awake_Private_Void_0;

	// Token: 0x04005111 RID: 20753
	private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Private_Void_0;

	// Token: 0x04005112 RID: 20754
	private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Private_Void_0;

	// Token: 0x04005113 RID: 20755
	private static readonly IntPtr NativeMethodInfoPtr_Solver_OnCollision_Private_Void_Object_ObiCollisionEventArgs_0;

	// Token: 0x04005114 RID: 20756
	private static readonly IntPtr NativeMethodInfoPtr_OnDrawGizmos_Private_Void_0;

	// Token: 0x04005115 RID: 20757
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
