terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Singleton.cs
Go to the documentation of this file.
1using System;
3using UnityEngine;
4
5// Token: 0x02000063 RID: 99
6public abstract class Singleton<T> : ScriptableObject where T : Singleton<T>, new()
7{
8 // Token: 0x06000209 RID: 521 RVA: 0x00005FB0 File Offset: 0x000041B0
9 public Singleton()
10 {
11 }
12
13 // Token: 0x17000073 RID: 115
14 // (get) Token: 0x0600020A RID: 522 RVA: 0x000021DB File Offset: 0x000003DB
15 public static T Instance
16 {
17 get
18 {
19 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
20 }
21 }
22
23 // Token: 0x0600020B RID: 523 RVA: 0x00005FC4 File Offset: 0x000041C4
24 public static void Create()
25 {
26 }
27
28 // Token: 0x0600020C RID: 524 RVA: 0x00005FD8 File Offset: 0x000041D8
29 private static void CreateOnMainThread(object resourceId)
30 {
31 if (resourceId != null)
32 {
33 }
34 }
35
36 // Token: 0x0600020D RID: 525 RVA: 0x00005FF0 File Offset: 0x000041F0
37 public static void Create(string resourceId)
38 {
40 bool isPlaying = Application.isPlaying;
41 }
42
43 // Token: 0x0600020E RID: 526 RVA: 0x00006060 File Offset: 0x00004260
44 public static void Destroy()
45 {
46 }
47
48 // Token: 0x0600020F RID: 527 RVA: 0x00006074 File Offset: 0x00004274
49 private void OnEnable()
50 {
51 if (!true)
52 {
53 return;
54 }
55 }
56
57 // Token: 0x06000210 RID: 528 RVA: 0x00006088 File Offset: 0x00004288
58 private void OnDisable()
59 {
60 if (true)
61 {
62 return;
63 }
64 }
65
66 // Token: 0x06000211 RID: 529 RVA: 0x0000609C File Offset: 0x0000429C
67 private static void Cleanup()
68 {
69 string text;
70 Debug.Log(text);
71 }
72
73 // Token: 0x06000212 RID: 530 RVA: 0x000060B0 File Offset: 0x000042B0
74 public virtual void Init()
75 {
76 }
77
78 // Token: 0x06000213 RID: 531 RVA: 0x000060C0 File Offset: 0x000042C0
79 public virtual void Shutdown()
80 {
81 }
82
83 // Token: 0x040001F7 RID: 503
84 private static T _instance;
85
86 // Token: 0x040001F8 RID: 504
87 private static bool _initialised;
88}
class f__AnonymousType0<< Count > j__TPar
static bool IsMainThread
static void CreateOnMainThread(object resourceId)
Definition Singleton.cs:29
Singleton()
Definition Singleton.cs:9
void OnEnable()
Definition Singleton.cs:49
static T Instance
Definition Singleton.cs:16
static void Create(string resourceId)
Definition Singleton.cs:37
virtual void Init()
Definition Singleton.cs:74
static void Cleanup()
Definition Singleton.cs:67
static void Create()
Definition Singleton.cs:24
static T _instance
Definition Singleton.cs:84
static bool _initialised
Definition Singleton.cs:87
virtual void Shutdown()
Definition Singleton.cs:79
void OnDisable()
Definition Singleton.cs:58
static void Destroy()
Definition Singleton.cs:44
static void Log(object message)
Definition Debug.cs:51