Terraria.Netplay.GetSectionY C# (CSharp) Method

GetSectionY() public static method

public static GetSectionY ( int y ) : int
y int
return int
        public static int GetSectionY(int y)
        {
            return y / 150;
        }
    }

Usage Example

Example #1
0
 public bool SectionRange(int size, int firstX, int firstY)
 {
     for (int index = 0; index < 4; ++index)
     {
         int x = firstX;
         int y = firstY;
         if (index == 1)
         {
             x += size;
         }
         if (index == 2)
         {
             y += size;
         }
         if (index == 3)
         {
             x += size;
             y += size;
         }
         if (this.TileSections[Netplay.GetSectionX(x), Netplay.GetSectionY(y)])
         {
             return(true);
         }
     }
     return(false);
 }
All Usage Examples Of Terraria.Netplay::GetSectionY