Dangersense() public method

public Dangersense ( int i, int j, Player player ) : bool
i int
j int
player Terraria.Player
return bool
Esempio n. 1
0
        public static bool Dangersense(int i, int j, int type, Player player)
        {
            ModTile modTile = GetTile(type);

            if (modTile != null && modTile.Dangersense(i, j, player))
            {
                return(true);
            }
            foreach (GlobalTile globalTile in globalTiles)
            {
                if (globalTile.Dangersense(i, j, type, player))
                {
                    return(true);
                }
            }
            return(false);
        }
Esempio n. 2
0
        public static bool Dangersense(int i, int j, int type, Player player)
        {
            ModTile modTile = GetTile(type);

            if (modTile != null && modTile.Dangersense(i, j, player))
            {
                return(true);
            }
            foreach (var hook in HookDangersense)
            {
                if (hook(i, j, type, player))
                {
                    return(true);
                }
            }
            return(false);
        }