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

// Token: 0x02000191 RID: 401
public class ChangeSun : SceneEvent
{
	// Token: 0x060046A1 RID: 18081 RVA: 0x00119A18 File Offset: 0x00117C18
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 542213, XrefRangeEnd = 542216, 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), ChangeSun.NativeMethodInfoPtr_OpenEvent_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060046A2 RID: 18082 RVA: 0x00119A68 File Offset: 0x00117C68
	[CallerCount(0)]
	public unsafe override void OnTriggerExit(Collider other)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(other);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), ChangeSun.NativeMethodInfoPtr_OnTriggerExit_Protected_Virtual_Void_Collider_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060046A3 RID: 18083 RVA: 0x00119ACC File Offset: 0x00117CCC
	[CallerCount(5)]
	[CachedScanResults(RefRangeStart = 541882, RefRangeEnd = 541887, XrefRangeStart = 541882, XrefRangeEnd = 541887, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe ChangeSun()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ChangeSun>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ChangeSun.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060046A4 RID: 18084 RVA: 0x00119B18 File Offset: 0x00117D18
	// Note: this type is marked as 'beforefieldinit'.
	static ChangeSun()
	{
		Il2CppClassPointerStore<ChangeSun>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "ChangeSun");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ChangeSun>.NativeClassPtr);
		ChangeSun.NativeFieldInfoPtr_Sun = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ChangeSun>.NativeClassPtr, "Sun");
		ChangeSun.NativeFieldInfoPtr_SetInstensity = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ChangeSun>.NativeClassPtr, "SetInstensity");
		ChangeSun.NativeMethodInfoPtr_OpenEvent_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ChangeSun>.NativeClassPtr, 100667989);
		ChangeSun.NativeMethodInfoPtr_OnTriggerExit_Protected_Virtual_Void_Collider_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ChangeSun>.NativeClassPtr, 100667990);
		ChangeSun.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ChangeSun>.NativeClassPtr, 100667991);
	}

	// Token: 0x060046A5 RID: 18085 RVA: 0x00117370 File Offset: 0x00115570
	public ChangeSun(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x1700199C RID: 6556
	// (get) Token: 0x060046A6 RID: 18086 RVA: 0x00119BAC File Offset: 0x00117DAC
	// (set) Token: 0x060046A7 RID: 18087 RVA: 0x00119BE0 File Offset: 0x00117DE0
	public unsafe Light Sun
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ChangeSun.NativeFieldInfoPtr_Sun);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Light(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ChangeSun.NativeFieldInfoPtr_Sun), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x1700199D RID: 6557
	// (get) Token: 0x060046A8 RID: 18088 RVA: 0x00119C08 File Offset: 0x00117E08
	// (set) Token: 0x060046A9 RID: 18089 RVA: 0x00119C30 File Offset: 0x00117E30
	public unsafe float SetInstensity
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ChangeSun.NativeFieldInfoPtr_SetInstensity);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ChangeSun.NativeFieldInfoPtr_SetInstensity)) = value;
		}
	}

	// Token: 0x04002EC8 RID: 11976
	private static readonly IntPtr NativeFieldInfoPtr_Sun;

	// Token: 0x04002EC9 RID: 11977
	private static readonly IntPtr NativeFieldInfoPtr_SetInstensity;

	// Token: 0x04002ECA RID: 11978
	private static readonly IntPtr NativeMethodInfoPtr_OpenEvent_Public_Virtual_Void_0;

	// Token: 0x04002ECB RID: 11979
	private static readonly IntPtr NativeMethodInfoPtr_OnTriggerExit_Protected_Virtual_Void_Collider_0;

	// Token: 0x04002ECC RID: 11980
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
