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
InControlManager.cs
Go to the documentation of this file.
1using System;
2using UnityEngine;
4
5namespace InControl
6{
7 // Token: 0x0200001A RID: 26
8 public class InControlManager : SingletonMonoBehavior<InControlManager>
9 {
10 // Token: 0x0600011A RID: 282 RVA: 0x00004308 File Offset: 0x00002508
11 private void OnEnable()
12 {
13 bool enforceSingleton = base.EnforceSingleton;
14 bool flag = this.invertYAxis;
15 if (!true)
16 {
17 }
18 if (!true)
19 {
20 }
21 bool flag2 = this.suspendInBackground;
22 if (!true)
23 {
24 }
25 bool flag3 = this.enableICade;
26 if (!true)
27 {
28 }
29 bool flag4 = this.enableXInput;
30 if (!true)
31 {
32 }
33 int num = this.xInputUpdateRate;
34 if (!true)
35 {
36 }
37 int num2 = this.xInputBufferSize;
38 if (!true)
39 {
40 }
42 if (!true)
43 {
44 }
45 bool flag6 = this.enableNativeInput;
46 if (!true)
47 {
48 }
50 if (!true)
51 {
52 }
53 bool flag8 = this.nativeInputEnableMFi;
54 if (!true)
55 {
56 }
57 int num3 = this.nativeInputUpdateRate;
58 if (!true)
59 {
60 }
62 if (!true)
63 {
64 }
66 bool flag11 = this.logDebugInfo;
67 if (flag11)
68 {
69 if (!flag11)
70 {
71 }
72 string text;
73 Debug.Log("InControl (version " + text + ")");
74 }
75 if (this.dontDestroyOnLoad)
76 {
77 global::UnityEngine.Object.DontDestroyOnLoad(this);
78 }
79 }
80
81 // Token: 0x0600011B RID: 283 RVA: 0x000043E0 File Offset: 0x000025E0
82 private void OnDisable()
83 {
84 bool isNotTheSingleton = base.IsNotTheSingleton;
85 }
86
87 // Token: 0x0600011C RID: 284 RVA: 0x000043FC File Offset: 0x000025FC
88 private void Update()
89 {
90 bool isNotTheSingleton = base.IsNotTheSingleton;
91 if (this.applicationHasQuit)
92 {
93 return;
94 }
96 if (inControlUpdateMode != InControlUpdateMode.Default)
97 {
98 float timeScale = Time.timeScale;
100 {
101 }
102 bool flag = Utility.IsZero(timeScale);
103 }
105 }
106
107 // Token: 0x0600011D RID: 285 RVA: 0x00004444 File Offset: 0x00002644
108 private void FixedUpdate()
109 {
110 bool isNotTheSingleton = base.IsNotTheSingleton;
111 if (!this.applicationHasQuit)
112 {
115 return;
116 }
117 }
118
119 // Token: 0x0600011E RID: 286 RVA: 0x00004470 File Offset: 0x00002670
121 {
122 bool isNotTheSingleton = base.IsNotTheSingleton;
123 }
124
125 // Token: 0x0600011F RID: 287 RVA: 0x0000448C File Offset: 0x0000268C
127 {
128 bool isNotTheSingleton = base.IsNotTheSingleton;
129 }
130
131 // Token: 0x06000120 RID: 288 RVA: 0x000044A8 File Offset: 0x000026A8
132 private void OnApplicationQuit()
133 {
134 bool isNotTheSingleton = base.IsNotTheSingleton;
137 }
138
139 // Token: 0x06000121 RID: 289 RVA: 0x000044CC File Offset: 0x000026CC
141 {
142 bool isNotTheSingleton = base.IsNotTheSingleton;
143 if (loadSceneMode == LoadSceneMode.Single)
144 {
146 return;
147 }
148 }
149
150 // Token: 0x06000122 RID: 290 RVA: 0x000044EC File Offset: 0x000026EC
151 private static void LogMessage(LogMessage logMessage)
152 {
154 }
155
156 // Token: 0x06000123 RID: 291 RVA: 0x00004510 File Offset: 0x00002710
158 {
159 if (!true)
160 {
161 }
162 base..ctor();
163 }
164
165 // Token: 0x04000113 RID: 275
166 public bool logDebugInfo = true;
167
168 // Token: 0x04000114 RID: 276
169 public bool invertYAxis;
170
171 // Token: 0x04000115 RID: 277
173 private bool useFixedUpdate;
174
175 // Token: 0x04000116 RID: 278
176 public bool dontDestroyOnLoad = true;
177
178 // Token: 0x04000117 RID: 279
180
181 // Token: 0x04000118 RID: 280
183
184 // Token: 0x04000119 RID: 281
185 public bool enableICade;
186
187 // Token: 0x0400011A RID: 282
188 public bool enableXInput;
189
190 // Token: 0x0400011B RID: 283
192
193 // Token: 0x0400011C RID: 284
195
196 // Token: 0x0400011D RID: 285
198
199 // Token: 0x0400011E RID: 286
201
202 // Token: 0x0400011F RID: 287
204
205 // Token: 0x04000120 RID: 288
206 public bool enableNativeInput;
207
208 // Token: 0x04000121 RID: 289
210
211 // Token: 0x04000122 RID: 290
213
214 // Token: 0x04000123 RID: 291
216
217 // Token: 0x04000124 RID: 292
219
220 // Token: 0x04000125 RID: 293
222
223 // Token: 0x04000126 RID: 294
224 private bool applicationHasQuit;
225 }
226}
class f__AnonymousType0<< Count > j__TPar
void OnApplicationPause(bool pauseState)
static void LogMessage(LogMessage logMessage)
void OnSceneWasLoaded(Scene scene, LoadSceneMode loadSceneMode)
void OnApplicationFocus(bool focusState)
InControlUpdateMode updateMode
static void OnApplicationQuit()
static void OnLevelWasLoaded()
static bool SetupInternal()
static void UpdateInternal()
static bool IsZero(float value)
Definition Utility.cs:219
static void Log(object message)
Definition Debug.cs:51
static float timeScale
Definition Time.cs:55