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

◆ GetColor() [4/4]

static Color Terraria.Lighting.GetColor ( Point tileCoords,
Color originalColor )
inlinestatic

Definition at line 267 of file Lighting.cs.

268 {
269 //IL_000e: Unknown result type (might be due to invalid IL or missing references)
270 //IL_0014: Unknown result type (might be due to invalid IL or missing references)
271 //IL_001a: Unknown result type (might be due to invalid IL or missing references)
272 //IL_0021: Unknown result type (might be due to invalid IL or missing references)
273 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
274 //IL_002b: Unknown result type (might be due to invalid IL or missing references)
275 //IL_0007: Unknown result type (might be due to invalid IL or missing references)
276 if (Main.gameMenu)
277 {
278 return originalColor;
279 }
280 return new Color(_activeEngine.GetColor(tileCoords.X, tileCoords.Y) * ((Color)(ref originalColor)).ToVector3());
281 }
static ILightingEngine _activeEngine
Definition Lighting.cs:25

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