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

// Token: 0x0200019D RID: 413
public class Dialogue : PassiveEvent
{
	// Token: 0x0600493D RID: 18749 RVA: 0x001253FC File Offset: 0x001235FC
	[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: 0x0600493E RID: 18750 RVA: 0x00125458 File Offset: 0x00123658
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 568391, RefRangeEnd = 568392, XrefRangeStart = 568387, XrefRangeEnd = 568391, 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: 0x0600493F RID: 18751 RVA: 0x0012549C File Offset: 0x0012369C
	[CallerCount(13)]
	[CachedScanResults(RefRangeStart = 235327, RefRangeEnd = 235340, XrefRangeStart = 235327, XrefRangeEnd = 235340, 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: 0x06004940 RID: 18752 RVA: 0x001254E8 File Offset: 0x001236E8
	// 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, 100668255);
		Dialogue.NativeMethodInfoPtr_OpenScript_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Dialogue>.NativeClassPtr, 100668256);
		Dialogue.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Dialogue>.NativeClassPtr, 100668257);
	}

	// Token: 0x06004941 RID: 18753 RVA: 0x000FAD2C File Offset: 0x000F8F2C
	public Dialogue(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001A49 RID: 6729
	// (get) Token: 0x06004942 RID: 18754 RVA: 0x00125568 File Offset: 0x00123768
	// (set) Token: 0x06004943 RID: 18755 RVA: 0x0012559C File Offset: 0x0012379C
	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: 0x04003092 RID: 12434
	private static readonly IntPtr NativeFieldInfoPtr_DialogueEvent;

	// Token: 0x04003093 RID: 12435
	private static readonly IntPtr NativeMethodInfoPtr_SetDialogue_Public_Void_LoadScript_0;

	// Token: 0x04003094 RID: 12436
	private static readonly IntPtr NativeMethodInfoPtr_OpenScript_Public_Void_0;

	// Token: 0x04003095 RID: 12437
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
