TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ GetColor() [2/4]

static Color Terraria.Lighting.GetColor ( int x,
int y,
Color oldColor )
inlinestatic

Definition at line 283 of file Lighting.cs.

284 {
285 //IL_0010: Unknown result type (might be due to invalid IL or missing references)
286 //IL_0017: Unknown result type (might be due to invalid IL or missing references)
287 //IL_001c: Unknown result type (might be due to invalid IL or missing references)
288 //IL_0021: Unknown result type (might be due to invalid IL or missing references)
289 //IL_0007: Unknown result type (might be due to invalid IL or missing references)
290 if (Main.gameMenu)
291 {
292 return oldColor;
293 }
294 return new Color(_activeEngine.GetColor(x, y) * ((Color)(ref oldColor)).ToVector3());
295 }
static ILightingEngine _activeEngine
Definition Lighting.cs:25

References Terraria.Lighting._activeEngine, Terraria.Graphics.Light.Color, and Terraria.Main.gameMenu.