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

// Token: 0x02000170 RID: 368
public class Dialogue : PassiveEvent
{
	// Token: 0x060044C2 RID: 17602 RVA: 0x0011286C File Offset: 0x00110A6C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetDialogue(LoadScript LS)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(LS);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Dialogue.NativeMethodInfoPtr_SetDialogue_Public_Void_LoadScript_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060044C3 RID: 17603 RVA: 0x001128C8 File Offset: 0x00110AC8
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 541192, RefRangeEnd = 541193, XrefRangeStart = 541188, XrefRangeEnd = 541192, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void OpenScript()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Dialogue.NativeMethodInfoPtr_OpenScript_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060044C4 RID: 17604 RVA: 0x0011290C File Offset: 0x00110B0C
	[CallerCount(13)]
	[CachedScanResults(RefRangeStart = 227409, RefRangeEnd = 227422, XrefRangeStart = 227409, XrefRangeEnd = 227422, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe Dialogue()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<Dialogue>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Dialogue.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060044C5 RID: 17605 RVA: 0x00112958 File Offset: 0x00110B58
	// Note: this type is marked as 'beforefieldinit'.
	static Dialogue()
	{
		Il2CppClassPointerStore<Dialogue>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "Dialogue");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<Dialogue>.NativeClassPtr);
		Dialogue.NativeFieldInfoPtr_DialogueEvent = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Dialogue>.NativeClassPtr, "DialogueEvent");
		Dialogue.NativeMethodInfoPtr_SetDialogue_Public_Void_LoadScript_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Dialogue>.NativeClassPtr, 100667872);
		Dialogue.NativeMethodInfoPtr_OpenScript_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Dialogue>.NativeClassPtr, 100667873);
		Dialogue.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Dialogue>.NativeClassPtr, 100667874);
	}

	// Token: 0x060044C6 RID: 17606 RVA: 0x000ED054 File Offset: 0x000EB254
	public Dialogue(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x170018FB RID: 6395
	// (get) Token: 0x060044C7 RID: 17607 RVA: 0x001129D8 File Offset: 0x00110BD8
	// (set) Token: 0x060044C8 RID: 17608 RVA: 0x00112A0C File Offset: 0x00110C0C
	public unsafe LoadScript DialogueEvent
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Dialogue.NativeFieldInfoPtr_DialogueEvent);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new LoadScript(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(Dialogue.NativeFieldInfoPtr_DialogueEvent), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04002D8A RID: 11658
	private static readonly IntPtr NativeFieldInfoPtr_DialogueEvent;

	// Token: 0x04002D8B RID: 11659
	private static readonly IntPtr NativeMethodInfoPtr_SetDialogue_Public_Void_LoadScript_0;

	// Token: 0x04002D8C RID: 11660
	private static readonly IntPtr NativeMethodInfoPtr_OpenScript_Public_Void_0;

	// Token: 0x04002D8D RID: 11661
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
