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

90 lines
2.6 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
// Token: 0x020004D9 RID: 1241
[Token(Token = "0x20004D9")]
[Serializable]
public class RuntimeSpawnableToolConfig : SpawnableToolConfig
{
// Token: 0x1700067F RID: 1663
// (get) Token: 0x060024A6 RID: 9382 RVA: 0x000942F4 File Offset: 0x000924F4
[Token(Token = "0x1700067F")]
public string PrefabName
{
[Token(Token = "0x60024A6")]
[Address(RVA = "0x7E2670", Offset = "0x7E1470", VA = "0x1807E2670")]
get
{
return this.prefabName;
}
}
// Token: 0x17000680 RID: 1664
// (get) Token: 0x060024A7 RID: 9383 RVA: 0x00094308 File Offset: 0x00092508
[Token(Token = "0x17000680")]
public bool SpawnControlPanel
{
[Token(Token = "0x60024A7")]
[Address(RVA = "0x8CD9C0", Offset = "0x8CC7C0", VA = "0x1808CD9C0")]
get
{
return this.spawnControlPanel;
}
}
// Token: 0x17000681 RID: 1665
// (get) Token: 0x060024A8 RID: 9384 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x17000681")]
public PMGCJEPKFOF<Tool> PrefabPromise
{
[Token(Token = "0x60024A8")]
[Address(RVA = "0xA3B410", Offset = "0xA3A210", VA = "0x180A3B410")]
get
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
}
// Token: 0x060024A9 RID: 9385 RVA: 0x0009431C File Offset: 0x0009251C
[Token(Token = "0x60024A9")]
[Address(RVA = "0xA3B230", Offset = "0xA3A030", VA = "0x180A3B230")]
public Tool ODANHLHPBFD(OGNBCNBPFCC MHDPLJDBCAN)
{
string text = this.prefabName;
object[] array = new object[1];
if (array != 0)
{
}
array[0] = array;
Debug.LogErrorFormat("SpawnableToolRuntimeConfig tried to load a prefab of type {0} with no PrefabName. Make sure the prefab is in a Resources folder and that the name of the prefab got properly copied from the SpawnableToolBuildConfig to the SpawnableToolRuntimeConfig asset.", array);
PNCNLDONLGK pncnldonlgk = RuntimeSpawnableToolConfig.prefabCache;
string text2 = this.prefabName;
int num = 0;
return pncnldonlgk.LACJBKOJHLM(text2, num != 0).GetComponent<Tool>();
}
// Token: 0x060024AA RID: 9386 RVA: 0x00094378 File Offset: 0x00092578
[Token(Token = "0x60024AA")]
[Address(RVA = "0xA3B400", Offset = "0xA3A200", VA = "0x180A3B400")]
public RuntimeSpawnableToolConfig()
{
}
// Token: 0x04001C1C RID: 7196
[FieldOffset(Offset = "0xC0")]
[Token(Token = "0x4001C1C")]
[SerializeField]
private string prefabName;
// Token: 0x04001C1D RID: 7197
[FieldOffset(Offset = "0xC8")]
[Token(Token = "0x4001C1D")]
[SerializeField]
private bool spawnControlPanel;
// Token: 0x04001C1E RID: 7198
[Token(Token = "0x4001C1E")]
private static readonly PNCNLDONLGK prefabCache = new PNCNLDONLGK();
}