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

◆ IsTileDangerous()

static ? bool Terraria.ModLoader.TileLoader.IsTileDangerous ( int i,
int j,
int type,
Player player )
inlinestatic

Definition at line 757 of file TileLoader.cs.

758 {
759 bool? retVal = null;
760 ModTile modTile = GetTile(type);
761 if (modTile != null && modTile.IsTileDangerous(i, j, player))
762 {
763 retVal = true;
764 }
766 for (int k = 0; k < hookIsTileDangerous.Length; k++)
767 {
768 bool? globalRetVal = hookIsTileDangerous[k](i, j, type, player);
769 if (globalRetVal.HasValue)
770 {
771 if (!globalRetVal.Value)
772 {
773 return false;
774 }
775 retVal = true;
776 }
777 }
778 return retVal;
779 }
static ModTile GetTile(int type)
Gets the ModTile instance with the given type. If no ModTile with the given type exists,...
static Func< int, int, int, Player, bool?>[] HookIsTileDangerous
Definition TileLoader.cs:87

References Terraria.ModLoader.TileLoader.GetTile(), and Terraria.ModLoader.TileLoader.HookIsTileDangerous.

Referenced by Terraria.GameContent.Drawing.TileDrawing.IsTileDangerous().

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