Files
2026-04-10 22:50:51 +02:00

284 lines
12 KiB
C#

using System;
using System.Collections.Generic;
using Backtrace.Unity.Types;
using Cpp2IlInjected;
using UnityEngine;
namespace Backtrace.Unity.Model
{
// Token: 0x02000021 RID: 33
[Token(Token = "0x2000014")]
[CreateAssetMenu]
[Serializable]
public class BacktraceConfiguration : ScriptableObject
{
// Token: 0x060000F5 RID: 245 RVA: 0x00002068 File Offset: 0x00000268
[Token(Token = "0x60000BB")]
[Address(RVA = "0x240CD90", Offset = "0x240BB90", VA = "0x18240CD90")]
public List<string> GetAttachmentPaths()
{
return null;
}
// Token: 0x060000F6 RID: 246 RVA: 0x00002068 File Offset: 0x00000268
[Token(Token = "0x60000BC")]
[Address(RVA = "0x240CE70", Offset = "0x240BC70", VA = "0x18240CE70")]
public string GetFullDatabasePath()
{
return null;
}
// Token: 0x17000025 RID: 37
// (get) Token: 0x060000F7 RID: 247 RVA: 0x00002068 File Offset: 0x00000268
[Token(Token = "0x1700001B")]
public string CrashpadDatabasePath
{
[Token(Token = "0x60000BD")]
[Address(RVA = "0x240D270", Offset = "0x240C070", VA = "0x18240D270")]
get
{
return null;
}
}
// Token: 0x060000F8 RID: 248 RVA: 0x00002068 File Offset: 0x00000268
[Token(Token = "0x60000BE")]
[Address(RVA = "0x240CE80", Offset = "0x240BC80", VA = "0x18240CE80")]
public string GetValidServerUrl()
{
return null;
}
// Token: 0x060000F9 RID: 249 RVA: 0x00002068 File Offset: 0x00000268
[Token(Token = "0x60000BF")]
[Address(RVA = "0x240CFA0", Offset = "0x240BDA0", VA = "0x18240CFA0")]
public static string UpdateServerUrl(string value)
{
return null;
}
// Token: 0x060000FA RID: 250 RVA: 0x0000248C File Offset: 0x0000068C
[Token(Token = "0x60000C0")]
[Address(RVA = "0x240D150", Offset = "0x240BF50", VA = "0x18240D150")]
public static bool ValidateServerUrl(string value)
{
return default(bool);
}
// Token: 0x060000FB RID: 251 RVA: 0x000024A4 File Offset: 0x000006A4
[Token(Token = "0x60000C1")]
[Address(RVA = "0x240CE90", Offset = "0x240BC90", VA = "0x18240CE90")]
public bool IsValid()
{
return default(bool);
}
// Token: 0x060000FC RID: 252 RVA: 0x00002068 File Offset: 0x00000268
[Token(Token = "0x60000C2")]
[Address(RVA = "0x240CF00", Offset = "0x240BD00", VA = "0x18240CF00")]
public BacktraceCredentials ToCredentials()
{
return null;
}
// Token: 0x060000FD RID: 253 RVA: 0x00002066 File Offset: 0x00000266
[Token(Token = "0x60000C3")]
[Address(RVA = "0x240D1C0", Offset = "0x240BFC0", VA = "0x18240D1C0")]
public BacktraceConfiguration()
{
}
// Token: 0x040000C9 RID: 201
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000089")]
[Header("Backtrace client configuration")]
[Tooltip("This field is required to submit exceptions from your Unity project to your Backtrace instance.\n \nMore information about how to retrieve this value for your instance is our docs at What is a submission URL and What is a submission token?\n\nNOTE: the backtrace-unity plugin will expect full URL with token to your Backtrace instance.")]
public string ServerUrl;
// Token: 0x040000CA RID: 202
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400008A")]
public string Token;
// Token: 0x040000CB RID: 203
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400008B")]
[Tooltip("Reports per minute: Limits the number of reports the client will send per minutes. If set to 0, there is no limit. If set to a higher value and the value is reached, the client will not send any reports until the next minute. Default: 50")]
public int ReportPerMin;
// Token: 0x040000CC RID: 204
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x400008C")]
[Tooltip("Toggle this on or off to set the library to handle unhandled exceptions that are not captured by try-catch blocks.")]
public bool HandleUnhandledExceptions;
// Token: 0x040000CD RID: 205
[FieldOffset(Offset = "0x2D")]
[Token(Token = "0x400008D")]
[Tooltip("Unity by default will validate ssl certificates. By using this option you can avoid ssl certificates validation. However, if you don't need to ignore ssl validation, please set this option to false.")]
public bool IgnoreSslValidation;
// Token: 0x040000CE RID: 206
[FieldOffset(Offset = "0x2E")]
[Token(Token = "0x400008E")]
[Tooltip("Backtrace-client by default will be available on each scene. Once you initialize Backtrace integration, you can fetch Backtrace game object from every scene. In case if you don't want to have Backtrace-unity integration available by default in each scene, please set this value to true.")]
public bool DestroyOnLoad;
// Token: 0x040000CF RID: 207
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400008F")]
[Tooltip("Log random sampling rate - Enables a random sampling mechanism for unhandled exceptions - by default sampling is equal to 0.01 - which means only 1% of randomply sampling reports will be send to Backtrace. \n* 1 - means 100% of unhandled exception reports will be reported by library,\n* 0.1 - means 10% of unhandled exception reports will be reported by library,\n* 0 - means library is going to drop all unhandled exception.")]
[Range(0f, 1f)]
public double Sampling;
// Token: 0x040000D0 RID: 208
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000090")]
[Tooltip("Report filter allows to filter specific type of reports. Possible options:\n* Disable - Disable report filtering - send every type of report.\n* Message - Prevent message reports.\n* Exception - Prevent exception reports.\n* Unhandled exception- Prevent unhandled exception reports.\n* Hang - Prevent sending reports when game hang.")]
public ReportFilterType ReportFilterType;
// Token: 0x040000D1 RID: 209
[FieldOffset(Offset = "0x3C")]
[Token(Token = "0x4000091")]
[Tooltip("Allows developer to filter number of game object childrens in Backtrace report.")]
public int GameObjectDepth;
// Token: 0x040000D2 RID: 210
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000092")]
[Tooltip("Number of logs collected by Backtrace-Unity")]
public uint NumberOfLogs;
// Token: 0x040000D3 RID: 211
[FieldOffset(Offset = "0x44")]
[Token(Token = "0x4000093")]
[Tooltip("Enable performance statistics")]
public bool PerformanceStatistics;
// Token: 0x040000D4 RID: 212
[FieldOffset(Offset = "0x45")]
[Token(Token = "0x4000094")]
[Tooltip("Try to find game native crashes and send them on Game startup")]
public bool SendUnhandledGameCrashesOnGameStartup;
// Token: 0x040000D5 RID: 213
[FieldOffset(Offset = "0x46")]
[Token(Token = "0x4000095")]
[Tooltip("Capture native iOS and NDK Crashes (ANDROID API 21+)")]
public bool CaptureNativeCrashes;
// Token: 0x040000D6 RID: 214
[FieldOffset(Offset = "0x47")]
[Token(Token = "0x4000096")]
[Tooltip("Handle ANR events - Application not responding")]
public bool HandleANR;
// Token: 0x040000D7 RID: 215
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000097")]
public int ANRThresholdMS;
// Token: 0x040000D8 RID: 216
[FieldOffset(Offset = "0x4C")]
[Token(Token = "0x4000098")]
public bool OomReports;
// Token: 0x040000D9 RID: 217
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4000099")]
[Tooltip("Symbols upload token required to upload symbols to Backtrace")]
public string SymbolsUploadToken;
// Token: 0x040000DA RID: 218
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x400009A")]
[Tooltip("Client-side deduplication allows the backtrace-unity library to group multiple error reports into a single one based on various factors. Factors include:\n\n* Disable - Client-side deduplication rules are disabled.\n* Everything - Use all the options as a factor in client-side deduplication.\n* Faulting callstack - Use the faulting callstack as a factor in client-side deduplication.\n* Exception type - Use the exception type as a factor in client-side deduplication.\n* Exception message - Use the exception message as a factor in client-side deduplication.")]
public DeduplicationStrategy DeduplicationStrategy;
// Token: 0x040000DB RID: 219
[FieldOffset(Offset = "0x5C")]
[Token(Token = "0x400009B")]
[Tooltip("If exception does not have a stack trace, use a normalized exception message to generate fingerprint.")]
public bool UseNormalizedExceptionMessage;
// Token: 0x040000DC RID: 220
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x400009C")]
[Tooltip("Type of minidump that will be attached to Backtrace report in the report generated on Windows machine.")]
public MiniDumpType MinidumpType;
// Token: 0x040000DD RID: 221
[FieldOffset(Offset = "0x64")]
[Token(Token = "0x400009D")]
[Tooltip("Generate and attach screenshot of frame as exception occurs")]
public bool GenerateScreenshotOnException;
// Token: 0x040000DE RID: 222
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x400009E")]
[Tooltip("List of path to attachments that Backtrace client will include in the native and managed reports.")]
public string[] AttachmentPaths;
// Token: 0x040000DF RID: 223
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x400009F")]
[Tooltip("This is the path to directory where the Backtrace database will store reports on your game. NOTE: Backtrace database will remove all existing files on database start.")]
public string DatabasePath;
// Token: 0x040000E0 RID: 224
[FieldOffset(Offset = "0x78")]
[Token(Token = "0x40000A0")]
[Header("Backtrace database configuration")]
[Tooltip("When this setting is toggled, the backtrace-unity plugin will configure an offline database that will store reports if they can't be submitted do to being offline or not finding a network. When toggled on, there are a number of Database settings to configure.")]
public bool Enabled;
// Token: 0x040000E1 RID: 225
[FieldOffset(Offset = "0x79")]
[Token(Token = "0x40000A1")]
[Tooltip("Add Unity player log file to Backtrace report")]
public bool AddUnityLogToReport;
// Token: 0x040000E2 RID: 226
[FieldOffset(Offset = "0x7A")]
[Token(Token = "0x40000A2")]
[Tooltip("When toggled on, the database will send automatically reports to Backtrace server based on the Retry Settings below. When toggled off, the developer will need to use the Flush method to attempt to send and clear. Recommend that this is toggled on.")]
public bool AutoSendMode;
// Token: 0x040000E3 RID: 227
[FieldOffset(Offset = "0x7B")]
[Token(Token = "0x40000A3")]
[Tooltip("If toggled, the library will create the offline database directory if the provided path doesn't exists.")]
public bool CreateDatabase;
// Token: 0x040000E4 RID: 228
[FieldOffset(Offset = "0x7C")]
[Token(Token = "0x40000A4")]
[Tooltip("This is one of two limits you can impose for controlling the growth of the offline store. This setting is the maximum number of stored reports in database. If value is equal to zero, then limit not exists, When the limit is reached, the database will remove the oldest entries.")]
public int MaxRecordCount;
// Token: 0x040000E5 RID: 229
[FieldOffset(Offset = "0x80")]
[Token(Token = "0x40000A5")]
[Tooltip("This is the second limit you can impose for controlling the growth of the offline store. This setting is the maximum database size in MB. If value is equal to zero, then size is unlimited, When the limit is reached, the database will remove the oldest entries.")]
public long MaxDatabaseSize;
// Token: 0x040000E6 RID: 230
[FieldOffset(Offset = "0x88")]
[Token(Token = "0x40000A6")]
[Tooltip("If the database is unable to send its record, this setting specifies how many seconds the library should wait between retries.")]
public int RetryInterval;
// Token: 0x040000E7 RID: 231
[FieldOffset(Offset = "0x8C")]
[Token(Token = "0x40000A7")]
[Tooltip("If the database is unable to send its record, this setting specifies the maximum number of retries before the system gives up.")]
public int RetryLimit;
// Token: 0x040000E8 RID: 232
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x40000A8")]
[Tooltip("This specifies in which order records are sent to the Backtrace server.")]
public RetryOrder RetryOrder;
}
}