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

// Token: 0x020001FF RID: 511
public class OpenSwitchDevice : SceneEvent
{
	// Token: 0x06004F48 RID: 20296 RVA: 0x0013C260 File Offset: 0x0013A460
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 572742, XrefRangeEnd = 572752, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Update()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(OpenSwitchDevice.NativeMethodInfoPtr_Update_Protected_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06004F49 RID: 20297 RVA: 0x0013C2A4 File Offset: 0x0013A4A4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 572752, XrefRangeEnd = 572789, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void OpenEvent()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), OpenSwitchDevice.NativeMethodInfoPtr_OpenEvent_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06004F4A RID: 20298 RVA: 0x0013C2F4 File Offset: 0x0013A4F4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 572789, XrefRangeEnd = 572790, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe OpenSwitchDevice()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<OpenSwitchDevice>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(OpenSwitchDevice.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06004F4B RID: 20299 RVA: 0x0013C340 File Offset: 0x0013A540
	// Note: this type is marked as 'beforefieldinit'.
	static OpenSwitchDevice()
	{
		Il2CppClassPointerStore<OpenSwitchDevice>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "OpenSwitchDevice");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<OpenSwitchDevice>.NativeClassPtr);
		OpenSwitchDevice.NativeFieldInfoPtr_SD = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OpenSwitchDevice>.NativeClassPtr, "SD");
		OpenSwitchDevice.NativeFieldInfoPtr_LeadSwitchObject = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OpenSwitchDevice>.NativeClassPtr, "LeadSwitchObject");
		OpenSwitchDevice.NativeFieldInfoPtr_CreateSoulPosition = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OpenSwitchDevice>.NativeClassPtr, "CreateSoulPosition");
		OpenSwitchDevice.NativeFieldInfoPtr_SwitchCamera = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OpenSwitchDevice>.NativeClassPtr, "SwitchCamera");
		OpenSwitchDevice.NativeFieldInfoPtr_CameraTime = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OpenSwitchDevice>.NativeClassPtr, "CameraTime");
		OpenSwitchDevice.NativeFieldInfoPtr_g_bCameraSwitch = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OpenSwitchDevice>.NativeClassPtr, "g_bCameraSwitch");
		OpenSwitchDevice.NativeFieldInfoPtr_g_fCameraTime = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OpenSwitchDevice>.NativeClassPtr, "g_fCameraTime");
		OpenSwitchDevice.NativeMethodInfoPtr_Update_Protected_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<OpenSwitchDevice>.NativeClassPtr, 100668623);
		OpenSwitchDevice.NativeMethodInfoPtr_OpenEvent_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<OpenSwitchDevice>.NativeClassPtr, 100668624);
		OpenSwitchDevice.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<OpenSwitchDevice>.NativeClassPtr, 100668625);
	}

	// Token: 0x06004F4C RID: 20300 RVA: 0x0012A4E8 File Offset: 0x001286E8
	public OpenSwitchDevice(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001C4C RID: 7244
	// (get) Token: 0x06004F4D RID: 20301 RVA: 0x0013C438 File Offset: 0x0013A638
	// (set) Token: 0x06004F4E RID: 20302 RVA: 0x0013C46C File Offset: 0x0013A66C
	public unsafe SwitchDevice SD
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OpenSwitchDevice.NativeFieldInfoPtr_SD);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new SwitchDevice(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(OpenSwitchDevice.NativeFieldInfoPtr_SD), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001C4D RID: 7245
	// (get) Token: 0x06004F4F RID: 20303 RVA: 0x0013C494 File Offset: 0x0013A694
	// (set) Token: 0x06004F50 RID: 20304 RVA: 0x0013C4C8 File Offset: 0x0013A6C8
	public unsafe Transform LeadSwitchObject
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OpenSwitchDevice.NativeFieldInfoPtr_LeadSwitchObject);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Transform(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(OpenSwitchDevice.NativeFieldInfoPtr_LeadSwitchObject), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001C4E RID: 7246
	// (get) Token: 0x06004F51 RID: 20305 RVA: 0x0013C4F0 File Offset: 0x0013A6F0
	// (set) Token: 0x06004F52 RID: 20306 RVA: 0x0013C524 File Offset: 0x0013A724
	public unsafe Transform CreateSoulPosition
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OpenSwitchDevice.NativeFieldInfoPtr_CreateSoulPosition);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Transform(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(OpenSwitchDevice.NativeFieldInfoPtr_CreateSoulPosition), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001C4F RID: 7247
	// (get) Token: 0x06004F53 RID: 20307 RVA: 0x0013C54C File Offset: 0x0013A74C
	// (set) Token: 0x06004F54 RID: 20308 RVA: 0x0013C580 File Offset: 0x0013A780
	public unsafe Transform SwitchCamera
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OpenSwitchDevice.NativeFieldInfoPtr_SwitchCamera);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Transform(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(OpenSwitchDevice.NativeFieldInfoPtr_SwitchCamera), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001C50 RID: 7248
	// (get) Token: 0x06004F55 RID: 20309 RVA: 0x0013C5A8 File Offset: 0x0013A7A8
	// (set) Token: 0x06004F56 RID: 20310 RVA: 0x0013C5D0 File Offset: 0x0013A7D0
	public unsafe float CameraTime
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OpenSwitchDevice.NativeFieldInfoPtr_CameraTime);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OpenSwitchDevice.NativeFieldInfoPtr_CameraTime)) = value;
		}
	}

	// Token: 0x17001C51 RID: 7249
	// (get) Token: 0x06004F57 RID: 20311 RVA: 0x0013C5F4 File Offset: 0x0013A7F4
	// (set) Token: 0x06004F58 RID: 20312 RVA: 0x0013C61C File Offset: 0x0013A81C
	public unsafe bool g_bCameraSwitch
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OpenSwitchDevice.NativeFieldInfoPtr_g_bCameraSwitch);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OpenSwitchDevice.NativeFieldInfoPtr_g_bCameraSwitch)) = value;
		}
	}

	// Token: 0x17001C52 RID: 7250
	// (get) Token: 0x06004F59 RID: 20313 RVA: 0x0013C640 File Offset: 0x0013A840
	// (set) Token: 0x06004F5A RID: 20314 RVA: 0x0013C668 File Offset: 0x0013A868
	public unsafe float g_fCameraTime
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OpenSwitchDevice.NativeFieldInfoPtr_g_fCameraTime);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OpenSwitchDevice.NativeFieldInfoPtr_g_fCameraTime)) = value;
		}
	}

	// Token: 0x0400346A RID: 13418
	private static readonly IntPtr NativeFieldInfoPtr_SD;

	// Token: 0x0400346B RID: 13419
	private static readonly IntPtr NativeFieldInfoPtr_LeadSwitchObject;

	// Token: 0x0400346C RID: 13420
	private static readonly IntPtr NativeFieldInfoPtr_CreateSoulPosition;

	// Token: 0x0400346D RID: 13421
	private static readonly IntPtr NativeFieldInfoPtr_SwitchCamera;

	// Token: 0x0400346E RID: 13422
	private static readonly IntPtr NativeFieldInfoPtr_CameraTime;

	// Token: 0x0400346F RID: 13423
	private static readonly IntPtr NativeFieldInfoPtr_g_bCameraSwitch;

	// Token: 0x04003470 RID: 13424
	private static readonly IntPtr NativeFieldInfoPtr_g_fCameraTime;

	// Token: 0x04003471 RID: 13425
	private static readonly IntPtr NativeMethodInfoPtr_Update_Protected_Void_0;

	// Token: 0x04003472 RID: 13426
	private static readonly IntPtr NativeMethodInfoPtr_OpenEvent_Public_Virtual_Void_0;

	// Token: 0x04003473 RID: 13427
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
