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

◆ IsTileBiomeSightable() [3/3]

static bool Terraria.Main.IsTileBiomeSightable ( int tileX,
int tileY,
ushort type,
short tileFrameX,
short tileFrameY,
ref Color sightColor )
inlinestaticpackage

Definition at line 21247 of file Main.cs.

21248 {
21249 //IL_0042: Unknown result type (might be due to invalid IL or missing references)
21250 //IL_0047: Unknown result type (might be due to invalid IL or missing references)
21251 //IL_0071: Unknown result type (might be due to invalid IL or missing references)
21252 //IL_0076: Unknown result type (might be due to invalid IL or missing references)
21253 //IL_0097: Unknown result type (might be due to invalid IL or missing references)
21254 //IL_009c: Unknown result type (might be due to invalid IL or missing references)
21256 if (modded.HasValue)
21257 {
21258 return modded.Value;
21259 }
21260 if (TileID.Sets.CorruptBiomeSight[type] || (remixWorld && type == 474))
21261 {
21262 sightColor = new Color(200, 100, 240);
21263 return true;
21264 }
21265 if (TileID.Sets.CrimsonBiomeSight[type] || (remixWorld && type == 195))
21266 {
21267 sightColor = new Color(255, 100, 100);
21268 return true;
21269 }
21270 if (TileID.Sets.HallowBiomeSight[type])
21271 {
21272 sightColor = new Color(255, 160, 240);
21273 return true;
21274 }
21275 return false;
21276 }
static bool[] CrimsonBiomeSight
Definition TileID.cs:314
static bool[] HallowBiomeSight
Definition TileID.cs:306
static bool[] CorruptBiomeSight
Definition TileID.cs:300
static bool remixWorld
Definition Main.cs:377
static ? bool IsTileBiomeSightable(int i, int j, int type, ref Color sightColor)
This serves as the central class from which tile-related functions are supported and carried out.
Definition TileLoader.cs:23

References Terraria.Graphics.Light.Color, Terraria.ID.TileID.Sets.CorruptBiomeSight, Terraria.ID.TileID.Sets.CrimsonBiomeSight, Terraria.ID.TileID.Sets.HallowBiomeSight, Terraria.ModLoader.TileLoader.IsTileBiomeSightable(), and Terraria.Main.remixWorld.

+ Here is the call graph for this function: