Slope() public method

public Slope ( int i, int j ) : bool
i int
j int
return bool
示例#1
0
        //in Terraria.Player.ItemCheck in poundRelease if statement before sloping if statements add
        //  if(TileLoader.Slope(num223, num224, Main.tile[num223, num224].type)) { } else
        public static bool Slope(int i, int j, int type)
        {
            foreach (GlobalTile globalTile in globalTiles)
            {
                if (!globalTile.Slope(i, j, type))
                {
                    return(true);
                }
            }
            ModTile modTile = GetTile(type);

            if (modTile != null)
            {
                return(!modTile.Slope(i, j));
            }
            return(false);
        }