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

◆ IsTileBiomeSightable()

static ? bool Terraria.ModLoader.TileLoader.IsTileBiomeSightable ( int i,
int j,
int type,
ref Color sightColor )
inlinestatic

Definition at line 781 of file TileLoader.cs.

782 {
783 bool? retVal = null;
784 ModTile modTile = GetTile(type);
785 if (modTile != null && modTile.IsTileBiomeSightable(i, j, ref sightColor))
786 {
787 retVal = true;
788 }
790 for (int k = 0; k < hookIsTileBiomeSightable.Length; k++)
791 {
793 if (globalRetVal.HasValue)
794 {
795 if (!globalRetVal.Value)
796 {
797 return false;
798 }
799 retVal = true;
800 }
801 }
802 return retVal;
803 }
static ModTile GetTile(int type)
Gets the ModTile instance with the given type. If no ModTile with the given type exists,...
static DelegateIsTileBiomeSightable[] HookIsTileBiomeSightable
Definition TileLoader.cs:89
delegate? bool DelegateIsTileBiomeSightable(int i, int j, int type, ref Color sightColor)

References Terraria.ModLoader.TileLoader.DelegateIsTileBiomeSightable(), Terraria.ModLoader.TileLoader.GetTile(), and Terraria.ModLoader.TileLoader.HookIsTileBiomeSightable.

Referenced by Terraria.Main.IsTileBiomeSightable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: