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

// Token: 0x020001C8 RID: 456
public class ChangeSun : SceneEvent
{
	// Token: 0x06004B89 RID: 19337 RVA: 0x0012DF94 File Offset: 0x0012C194
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 569884, XrefRangeEnd = 569887, 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: 0x06004B8A RID: 19338 RVA: 0x0012DFE4 File Offset: 0x0012C1E4
	[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: 0x06004B8B RID: 19339 RVA: 0x0012E048 File Offset: 0x0012C248
	[CallerCount(5)]
	[CachedScanResults(RefRangeStart = 569315, RefRangeEnd = 569320, XrefRangeStart = 569315, XrefRangeEnd = 569320, 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: 0x06004B8C RID: 19340 RVA: 0x0012E094 File Offset: 0x0012C294
	// 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, 100668399);
		ChangeSun.NativeMethodInfoPtr_OnTriggerExit_Protected_Virtual_Void_Collider_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ChangeSun>.NativeClassPtr, 100668400);
		ChangeSun.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ChangeSun>.NativeClassPtr, 100668401);
	}

	// Token: 0x06004B8D RID: 19341 RVA: 0x0012A4E8 File Offset: 0x001286E8
	public ChangeSun(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001B0C RID: 6924
	// (get) Token: 0x06004B8E RID: 19342 RVA: 0x0012E128 File Offset: 0x0012C328
	// (set) Token: 0x06004B8F RID: 19343 RVA: 0x0012E15C File Offset: 0x0012C35C
	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: 0x17001B0D RID: 6925
	// (get) Token: 0x06004B90 RID: 19344 RVA: 0x0012E184 File Offset: 0x0012C384
	// (set) Token: 0x06004B91 RID: 19345 RVA: 0x0012E1AC File Offset: 0x0012C3AC
	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: 0x04003219 RID: 12825
	private static readonly IntPtr NativeFieldInfoPtr_Sun;

	// Token: 0x0400321A RID: 12826
	private static readonly IntPtr NativeFieldInfoPtr_SetInstensity;

	// Token: 0x0400321B RID: 12827
	private static readonly IntPtr NativeMethodInfoPtr_OpenEvent_Public_Virtual_Void_0;

	// Token: 0x0400321C RID: 12828
	private static readonly IntPtr NativeMethodInfoPtr_OnTriggerExit_Protected_Virtual_Void_Collider_0;

	// Token: 0x0400321D RID: 12829
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
