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

// Token: 0x02000042 RID: 66
public class LogHistoryItem : Il2CppSystem.Object
{
	// Token: 0x06000698 RID: 1688 RVA: 0x0001BFD0 File Offset: 0x0001A1D0
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 491538, XrefRangeEnd = 491541, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe LogHistoryItem(LogType type, string message, float time, string stackTrace = "")
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<LogHistoryItem>.NativeClassPtr))
	{
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)4) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref type;
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.ManagedStringToIl2Cpp(message);
		ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref time;
		ptr[checked(unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.ManagedStringToIl2Cpp(stackTrace);
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(LogHistoryItem.NativeMethodInfoPtr__ctor_Public_Void_LogType_String_Single_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06000699 RID: 1689 RVA: 0x0001C070 File Offset: 0x0001A270
	// Note: this type is marked as 'beforefieldinit'.
	static LogHistoryItem()
	{
		Il2CppClassPointerStore<LogHistoryItem>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "LogHistoryItem");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<LogHistoryItem>.NativeClassPtr);
		LogHistoryItem.NativeFieldInfoPtr_Type = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<LogHistoryItem>.NativeClassPtr, "Type");
		LogHistoryItem.NativeFieldInfoPtr_StackTrace = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<LogHistoryItem>.NativeClassPtr, "StackTrace");
		LogHistoryItem.NativeFieldInfoPtr_LogMessage = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<LogHistoryItem>.NativeClassPtr, "LogMessage");
		LogHistoryItem.NativeFieldInfoPtr_Time = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<LogHistoryItem>.NativeClassPtr, "Time");
		LogHistoryItem.NativeMethodInfoPtr__ctor_Public_Void_LogType_String_Single_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<LogHistoryItem>.NativeClassPtr, 100663775);
	}

	// Token: 0x0600069A RID: 1690 RVA: 0x0000A74C File Offset: 0x0000894C
	public LogHistoryItem(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x1700024D RID: 589
	// (get) Token: 0x0600069B RID: 1691 RVA: 0x0001C104 File Offset: 0x0001A304
	// (set) Token: 0x0600069C RID: 1692 RVA: 0x0001C12C File Offset: 0x0001A32C
	public unsafe LogType Type
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(LogHistoryItem.NativeFieldInfoPtr_Type);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(LogHistoryItem.NativeFieldInfoPtr_Type)) = value;
		}
	}

	// Token: 0x1700024E RID: 590
	// (get) Token: 0x0600069D RID: 1693 RVA: 0x0001C150 File Offset: 0x0001A350
	// (set) Token: 0x0600069E RID: 1694 RVA: 0x0001C179 File Offset: 0x0001A379
	public unsafe string StackTrace
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(LogHistoryItem.NativeFieldInfoPtr_StackTrace);
			return IL2CPP.Il2CppStringToManaged(*intPtr);
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(LogHistoryItem.NativeFieldInfoPtr_StackTrace), IL2CPP.ManagedStringToIl2Cpp(value));
		}
	}

	// Token: 0x1700024F RID: 591
	// (get) Token: 0x0600069F RID: 1695 RVA: 0x0001C1A0 File Offset: 0x0001A3A0
	// (set) Token: 0x060006A0 RID: 1696 RVA: 0x0001C1C9 File Offset: 0x0001A3C9
	public unsafe string LogMessage
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(LogHistoryItem.NativeFieldInfoPtr_LogMessage);
			return IL2CPP.Il2CppStringToManaged(*intPtr);
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(LogHistoryItem.NativeFieldInfoPtr_LogMessage), IL2CPP.ManagedStringToIl2Cpp(value));
		}
	}

	// Token: 0x17000250 RID: 592
	// (get) Token: 0x060006A1 RID: 1697 RVA: 0x0001C1F0 File Offset: 0x0001A3F0
	// (set) Token: 0x060006A2 RID: 1698 RVA: 0x0001C218 File Offset: 0x0001A418
	public unsafe float Time
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(LogHistoryItem.NativeFieldInfoPtr_Time);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(LogHistoryItem.NativeFieldInfoPtr_Time)) = value;
		}
	}

	// Token: 0x04000414 RID: 1044
	private static readonly IntPtr NativeFieldInfoPtr_Type;

	// Token: 0x04000415 RID: 1045
	private static readonly IntPtr NativeFieldInfoPtr_StackTrace;

	// Token: 0x04000416 RID: 1046
	private static readonly IntPtr NativeFieldInfoPtr_LogMessage;

	// Token: 0x04000417 RID: 1047
	private static readonly IntPtr NativeFieldInfoPtr_Time;

	// Token: 0x04000418 RID: 1048
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_LogType_String_Single_String_0;
}
