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

◆ PreRenderPhase()

void Terraria.Graphics.Light.LegacyLighting.PreRenderPhase ( Rectangle area)
inlineprivate

Definition at line 266 of file LegacyLighting.cs.

267 {
268 if (!true)
269 {
270 }
271 this._workingLightMap.Clear();
272 int num = 20;
273 int num2 = 20;
274 this._workingLightMap.SetSize(num, num2);
275 SceneMetrics sceneMetrics = Main.SceneMetrics;
276 Vector2 center = Main.LocalPlayer.Center;
277 bool accOreFinder = Main.LocalPlayer.accOreFinder;
278 this._tileScanner.Update();
279 int width = this._workingProcessedArea.Width;
280 TileLightScanner tileScanner = this._tileScanner;
281 LightMap workingLightMap = this._workingLightMap;
283 if (!accOreFinder)
284 {
285 }
286 Vector3[] colors = this._workingLightMap._colors;
287 if (colors != null)
288 {
289 return;
290 }
291 if (colors == null)
292 {
293 }
294 if (colors == null)
295 {
296 }
297 float z = colors.Z;
298 LightMap workingLightMap2 = this._workingLightMap;
302 }
class f__AnonymousType0<< Count > j__TPar
void SetSize(int width, int height)
Definition LightMap.cs:488

References Terraria.Graphics.Light.LightMap._colors, Terraria.Graphics.Light.LegacyLighting._tileScanner, Terraria.Graphics.Light.LegacyLighting._workingLightMap, Terraria.Graphics.Light.LegacyLighting._workingProcessedArea, Terraria.Player.accOreFinder, Terraria.Entity.Center, Terraria.Graphics.Light.LightMap.Clear(), j__TPar, Terraria.Graphics.Light.LegacyLighting.k__BackingField, Terraria.Main.LocalPlayer, Terraria.Main.SceneMetrics, Terraria.Graphics.Light.LightMap.SetSize(), Terraria.Graphics.Light.TileLightScanner.Update(), Microsoft.Xna.Framework.Rectangle.Width, and Microsoft.Xna.Framework.Vector3.Z.