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

// Token: 0x02000041 RID: 65
public class LogHistoryItem : Il2CppSystem.Object
{
	// Token: 0x06000695 RID: 1685 RVA: 0x0001BF0C File Offset: 0x0001A10C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 471696, XrefRangeEnd = 471699, 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: 0x06000696 RID: 1686 RVA: 0x0001BFAC File Offset: 0x0001A1AC
	// 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, 100663774);
	}

	// Token: 0x06000697 RID: 1687 RVA: 0x0000A688 File Offset: 0x00008888
	public LogHistoryItem(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x1700024B RID: 587
	// (get) Token: 0x06000698 RID: 1688 RVA: 0x0001C040 File Offset: 0x0001A240
	// (set) Token: 0x06000699 RID: 1689 RVA: 0x0001C068 File Offset: 0x0001A268
	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: 0x1700024C RID: 588
	// (get) Token: 0x0600069A RID: 1690 RVA: 0x0001C08C File Offset: 0x0001A28C
	// (set) Token: 0x0600069B RID: 1691 RVA: 0x0001C0B5 File Offset: 0x0001A2B5
	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: 0x1700024D RID: 589
	// (get) Token: 0x0600069C RID: 1692 RVA: 0x0001C0DC File Offset: 0x0001A2DC
	// (set) Token: 0x0600069D RID: 1693 RVA: 0x0001C105 File Offset: 0x0001A305
	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: 0x1700024E RID: 590
	// (get) Token: 0x0600069E RID: 1694 RVA: 0x0001C12C File Offset: 0x0001A32C
	// (set) Token: 0x0600069F RID: 1695 RVA: 0x0001C154 File Offset: 0x0001A354
	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: 0x0400040E RID: 1038
	private static readonly IntPtr NativeFieldInfoPtr_Type;

	// Token: 0x0400040F RID: 1039
	private static readonly IntPtr NativeFieldInfoPtr_StackTrace;

	// Token: 0x04000410 RID: 1040
	private static readonly IntPtr NativeFieldInfoPtr_LogMessage;

	// Token: 0x04000411 RID: 1041
	private static readonly IntPtr NativeFieldInfoPtr_Time;

	// Token: 0x04000412 RID: 1042
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_LogType_String_Single_String_0;
}
