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
LanternNight.cs
Go to the documentation of this file.
1using System;
11
13{
14 [global::Cpp2ILInjected.Token(Token = "0x2000A50")]
15 public class LanternNight
16 {
17 [global::Cpp2ILInjected.Token(Token = "0x1700089B")]
18 public static bool LanternsUp
19 {
20 [global::Cpp2ILInjected.Token(Token = "0x6004DF6")]
21 [global::Cpp2ILInjected.Address(RVA = "0x8CE578", Offset = "0x8CE578", Length = "0x60")]
22 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
23 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Chest), Member = "SetupShop", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
24 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DrawCapture", MemberParameters = new object[]
25 {
28 }, ReturnType = typeof(void))]
29 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "UpdateWeather", MemberParameters = new object[]
30 {
32 typeof(int)
33 }, ReturnType = typeof(void))]
34 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DoDraw", MemberParameters = new object[] { typeof(GameTime) }, ReturnType = typeof(void))]
35 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "UpdateTime", ReturnType = typeof(void))]
36 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "ShouldNormalEventsBeAbleToStart", ReturnType = typeof(bool))]
37 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "UpdateTime_StartNight", MemberParameters = new object[] { typeof(ref bool) }, ReturnType = typeof(void))]
38 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NetMessage), Member = "SendData", MemberParameters = new object[]
39 {
40 typeof(int),
41 typeof(int),
42 typeof(int),
44 typeof(int),
45 typeof(float),
46 typeof(float),
47 typeof(float),
48 typeof(int),
49 typeof(int),
50 typeof(int)
51 }, ReturnType = typeof(void))]
52 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPC), Member = "GetChat", ReturnType = typeof(string))]
53 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "RecalculateLuck", ReturnType = typeof(void))]
54 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(PlayerDrawLayers), Member = "DrawPlayer_Head_GetTVScreen", MemberParameters = new object[] { typeof(Player) }, ReturnType = typeof(int))]
55 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LanternSky), Member = "Update", MemberParameters = new object[] { typeof(GameTime) }, ReturnType = typeof(void))]
56 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LanternNight), Member = "ToggleManualLanterns", ReturnType = typeof(void))]
57 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LanternNight), Member = "UpdateTime", ReturnType = typeof(void))]
58 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 20)]
59 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
60 get
61 {
62 throw null;
63 }
64 }
65
66 [global::Cpp2ILInjected.Token(Token = "0x6004DF7")]
67 [global::Cpp2ILInjected.Address(RVA = "0x8CE5D8", Offset = "0x8CE5D8", Length = "0x5C")]
68 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "UpdateTime_StartDay", MemberParameters = new object[] { typeof(ref bool) }, ReturnType = typeof(void))]
69 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
70 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
71 public static void CheckMorning()
72 {
73 throw null;
74 }
75
76 [global::Cpp2ILInjected.Token(Token = "0x6004DF8")]
77 [global::Cpp2ILInjected.Address(RVA = "0x8CE634", Offset = "0x8CE634", Length = "0x4")]
78 [global::Cpp2ILInjected.CallAnalysis.CallAnalysisNotSupported]
79 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "UpdateTime_StartNight", MemberParameters = new object[] { typeof(ref bool) }, ReturnType = typeof(void))]
80 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
81 public static void CheckNight()
82 {
83 throw null;
84 }
85
86 [global::Cpp2ILInjected.Token(Token = "0x6004DF9")]
87 [global::Cpp2ILInjected.Address(RVA = "0x8CE78C", Offset = "0x8CE78C", Length = "0x6C")]
88 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LanternNight), Member = "UpdateTime", ReturnType = typeof(void))]
89 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
90 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
91 public static bool LanternsCanPersist()
92 {
93 throw null;
94 }
95
96 [global::Cpp2ILInjected.Token(Token = "0x6004DFA")]
97 [global::Cpp2ILInjected.Address(RVA = "0x8CE7F8", Offset = "0x8CE7F8", Length = "0xF8")]
98 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LanternNight), Member = "NaturalAttempt", ReturnType = typeof(void))]
99 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
100 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LanternNight), Member = "BossIsActive", ReturnType = typeof(bool))]
101 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
102 public static bool LanternsCanStart()
103 {
104 throw null;
105 }
106
107 [global::Cpp2ILInjected.Token(Token = "0x6004DFB")]
108 [global::Cpp2ILInjected.Address(RVA = "0x8CE8F0", Offset = "0x8CE8F0", Length = "0x98")]
109 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
110 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LanternNight), Member = "LanternsCanStart", ReturnType = typeof(bool))]
111 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
112 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
113 private static bool BossIsActive()
114 {
115 throw null;
116 }
117
118 [global::Cpp2ILInjected.Token(Token = "0x6004DFC")]
119 [global::Cpp2ILInjected.Address(RVA = "0x8CE638", Offset = "0x8CE638", Length = "0x154")]
120 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
121 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_NetClientOnly", ReturnType = typeof(bool))]
122 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LanternNight), Member = "LanternsCanStart", ReturnType = typeof(bool))]
123 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[]
124 {
125 typeof(int),
126 typeof(int)
127 }, ReturnType = typeof(int))]
128 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
129 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 9)]
130 private static void NaturalAttempt()
131 {
132 throw null;
133 }
134
135 [global::Cpp2ILInjected.Token(Token = "0x6004DFD")]
136 [global::Cpp2ILInjected.Address(RVA = "0x8CE988", Offset = "0x8CE988", Length = "0x114")]
137 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
138 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LanternNight), Member = "get_LanternsUp", ReturnType = typeof(bool))]
139 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_LogicHost", ReturnType = typeof(bool))]
140 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_NetHost", ReturnType = typeof(bool))]
141 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NetMessage), Member = "SendData", MemberParameters = new object[]
142 {
143 typeof(int),
144 typeof(int),
145 typeof(int),
147 typeof(int),
148 typeof(float),
149 typeof(float),
150 typeof(float),
151 typeof(int),
152 typeof(int),
153 typeof(int)
154 }, ReturnType = typeof(void))]
155 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
156 public static void ToggleManualLanterns()
157 {
158 throw null;
159 }
160
161 [global::Cpp2ILInjected.Token(Token = "0x6004DFE")]
162 [global::Cpp2ILInjected.Address(RVA = "0x8CEA9C", Offset = "0x8CEA9C", Length = "0x50")]
163 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
164 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "ClearVisualPostProcessEffects", ReturnType = typeof(void))]
165 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "clearWorld", ReturnType = typeof(void))]
166 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
167 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
168 public static void WorldClear()
169 {
170 throw null;
171 }
172
173 [global::Cpp2ILInjected.Token(Token = "0x6004DFF")]
174 [global::Cpp2ILInjected.Address(RVA = "0x8CEAEC", Offset = "0x8CEAEC", Length = "0x270")]
175 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
176 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "UpdateTime", ReturnType = typeof(void))]
177 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
178 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LanternNight), Member = "LanternsCanPersist", ReturnType = typeof(bool))]
179 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LanternNight), Member = "get_LanternsUp", ReturnType = typeof(bool))]
180 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_LogicClient", ReturnType = typeof(bool))]
181 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EffectManager<>), Member = "Activate", MemberParameters = new object[]
182 {
183 typeof(string),
185 typeof(object[])
186 }, ReturnType = "T")]
187 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EffectManager<>), Member = "Deactivate", MemberParameters = new object[]
188 {
189 typeof(string),
190 typeof(object[])
191 }, ReturnType = typeof(void))]
192 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_NetHost", ReturnType = typeof(bool))]
193 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NetMessage), Member = "SendData", MemberParameters = new object[]
194 {
195 typeof(int),
196 typeof(int),
197 typeof(int),
199 typeof(int),
200 typeof(float),
201 typeof(float),
202 typeof(float),
203 typeof(int),
204 typeof(int),
205 typeof(int)
206 }, ReturnType = typeof(void))]
207 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 18)]
208 public static void UpdateTime()
209 {
210 throw null;
211 }
212
213 [global::Cpp2ILInjected.Token(Token = "0x6004E00")]
214 [global::Cpp2ILInjected.Address(RVA = "0x8CED5C", Offset = "0x8CED5C", Length = "0x8")]
215 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
216 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
218 {
219 throw null;
220 }
221
222 [global::Cpp2ILInjected.Token(Token = "0x40086BE")]
223 public static bool ManualLanterns;
224
225 [global::Cpp2ILInjected.Token(Token = "0x40086BF")]
226 public static bool GenuineLanterns;
227
228 [global::Cpp2ILInjected.Token(Token = "0x40086C0")]
229 public static bool NextNightIsLanternNight;
230
231 [global::Cpp2ILInjected.Token(Token = "0x40086C1")]
232 public static int LanternNightsOnCooldown;
233
234 [global::Cpp2ILInjected.Token(Token = "0x40086C2")]
235 private static bool _wasLanternNight;
236 }
237}
class f__AnonymousType0<< Count > j__TPar