terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
MainThreadExecution.cs
Go to the documentation of this file.
1using System;
9using Terraria;
10using Terraria.IO;
12using UnityEngine;
13
14[global::Cpp2ILInjected.Token(Token = "0x200005B")]
16{
17 [global::Cpp2ILInjected.Token(Token = "0x60001E5")]
18 [global::Cpp2ILInjected.Address(RVA = "0x709E74", Offset = "0x709E74", Length = "0xC4")]
19 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
20 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ThreadedRenderManager.RenderThreadInstance), Member = ".ctor", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
21 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
22 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
23 public static void ExcludeThread(ManagedThread thread)
24 {
25 throw null;
26 }
27
28 [global::Cpp2ILInjected.Token(Token = "0x60001E6")]
29 [global::Cpp2ILInjected.Address(RVA = "0x7038B0", Offset = "0x7038B0", Length = "0x190")]
30 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
31 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(DrPlatform.Switch), Member = "set_CPUBoostMode", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
32 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Singleton<>), Member = "Create", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
33 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Microsoft.Xna.Framework.Graphics.Texture2D), Member = ".ctor", MemberParameters = new object[]
34 {
36 typeof(int),
37 typeof(int)
38 }, ReturnType = typeof(void))]
39 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SoundEffectInstance), Member = "Play", ReturnType = typeof(void))]
40 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SoundEffectInstance), Member = "Stop", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
41 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DedServ", ReturnType = typeof(void))]
42 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "SaveAndQuitCallBack", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
43 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "playWorldCallBack", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
44 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "joinLocalWorldCallBack", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
45 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "clearWorld", ReturnType = typeof(void))]
46 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "smCallBack", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
47 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGenConfiguration), Member = "FromEmbeddedPath", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(WorldGenConfiguration))]
48 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldFile), Member = "LoadWorld", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
49 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 13)]
50 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
51 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Thread), Member = "get_CurrentThread", ReturnType = typeof(Thread))]
52 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "LogError", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
53 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MainThreadExecution), Member = ".ctor", MemberParameters = new object[]
54 {
56 typeof(object)
57 }, ReturnType = typeof(void))]
58 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ConcurrentQueue<object>), Member = "Enqueue", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
59 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MainThreadExecution), Member = "WaitOnMainThreadComplete", ReturnType = typeof(void))]
60 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 11)]
62 {
63 throw null;
64 }
65
66 [global::Cpp2ILInjected.Token(Token = "0x60001E7")]
67 [global::Cpp2ILInjected.Address(RVA = "0x70A08C", Offset = "0x70A08C", Length = "0x8C")]
68 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MainThreadExecution), Member = "ExecuteSnippets", ReturnType = typeof(void))]
69 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "ExecuteThreadTime", ReturnType = typeof(void))]
70 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
71 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ConcurrentQueue<object>), Member = "TryDequeue", MemberParameters = new object[] { typeof(ref object) }, ReturnType = typeof(bool))]
72 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MainThreadExecution), Member = "Execute", ReturnType = typeof(void))]
73 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
74 public static void ExecuteSnippetsOnly()
75 {
76 throw null;
77 }
78
79 [global::Cpp2ILInjected.Token(Token = "0x60001E8")]
80 [global::Cpp2ILInjected.Address(RVA = "0x7012F4", Offset = "0x7012F4", Length = "0x78")]
81 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(DrPlatform), Member = "Update", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(void))]
82 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
83 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MainThreadExecution), Member = "ExecuteSnippetsOnly", ReturnType = typeof(void))]
84 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "ExecuteThreadTime", ReturnType = typeof(void))]
85 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
86 public static void ExecuteSnippets()
87 {
88 throw null;
89 }
90
91 [global::Cpp2ILInjected.Token(Token = "0x60001E9")]
92 [global::Cpp2ILInjected.Address(RVA = "0x709F38", Offset = "0x709F38", Length = "0x78")]
93 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MainThreadExecution), Member = "ExecuteOnMainThread", MemberParameters = new object[]
94 {
96 typeof(object)
97 }, ReturnType = typeof(void))]
98 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
99 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
100 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
102 {
103 throw null;
104 }
105
106 [global::Cpp2ILInjected.Token(Token = "0x60001EA")]
107 [global::Cpp2ILInjected.Address(RVA = "0x70A118", Offset = "0x70A118", Length = "0xD0")]
108 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
109 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MainThreadExecution), Member = "ExecuteSnippetsOnly", ReturnType = typeof(void))]
110 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
111 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Enter", MemberParameters = new object[]
112 {
113 typeof(object),
114 typeof(ref bool)
115 }, ReturnType = typeof(void))]
116 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
117 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
118 public void Execute()
119 {
120 throw null;
121 }
122
123 [global::Cpp2ILInjected.Token(Token = "0x60001EB")]
124 [global::Cpp2ILInjected.Address(RVA = "0x709FB0", Offset = "0x709FB0", Length = "0xDC")]
125 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
126 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MainThreadExecution), Member = "ExecuteOnMainThread", MemberParameters = new object[]
127 {
129 typeof(object)
130 }, ReturnType = typeof(void))]
131 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
132 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Thread), Member = "Sleep", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
133 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Enter", MemberParameters = new object[]
134 {
135 typeof(object),
136 typeof(ref bool)
137 }, ReturnType = typeof(void))]
138 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
139 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
141 {
142 throw null;
143 }
144
145 // Note: this type is marked as 'beforefieldinit'.
146 [global::Cpp2ILInjected.Token(Token = "0x60001EC")]
147 [global::Cpp2ILInjected.Address(RVA = "0x70A1E8", Offset = "0x70A1E8", Length = "0xDC")]
148 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
149 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = ".ctor", ReturnType = typeof(void))]
150 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ConcurrentQueue<object>), Member = ".ctor", ReturnType = typeof(void))]
151 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
153 {
154 throw null;
155 }
156
157 [global::Cpp2ILInjected.Token(Token = "0x40001DE")]
159
160 [global::Cpp2ILInjected.Token(Token = "0x40001DF")]
162
163 [global::Cpp2ILInjected.Token(Token = "0x40001E0")]
164 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
165 private object _lockObject;
166
167 [global::Cpp2ILInjected.Token(Token = "0x40001E1")]
168 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
170
171 [global::Cpp2ILInjected.Token(Token = "0x40001E2")]
172 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
173 private object _data;
174
175 [global::Cpp2ILInjected.Token(Token = "0x40001E3")]
176 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
177 private bool _completed;
178
179 [global::Cpp2ILInjected.Token(Token = "0x200005C")]
180 public delegate void ExecutionSnippet(object data);
181}
class f__AnonymousType0<< Count > j__TPar
static void ExcludeThread(ManagedThread thread)
static List< ManagedThread > ExcludedThreads
static void ExecuteOnMainThread(MainThreadExecution.ExecutionSnippet snippet, object data)
delegate void ExecutionSnippet(object data)
static void ExecuteSnippets()
static void ExecuteSnippetsOnly()
MainThreadExecution.ExecutionSnippet _snippet
static ConcurrentQueue< MainThreadExecution > _pendingRequests
MainThreadExecution(MainThreadExecution.ExecutionSnippet snippet, object data)