CanExplode() public method

public CanExplode ( int i, int j ) : bool
i int
j int
return bool
Ejemplo n.º 1
0
        public static bool CanExplode(int i, int j)
        {
            int     type    = Main.tile[i, j].type;
            ModTile modTile = GetTile(type);

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