Slope() 공개 메소드

public Slope ( int i, int j ) : bool
i int
j int
리턴 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);
        }