Terraria.Mount.FindTileHeight C# (CSharp) Method

FindTileHeight() public method

public FindTileHeight ( Vector2 position, int maxTilesDown, float &tileHeight ) : bool
position Vector2
maxTilesDown int
tileHeight float
return bool
        public bool FindTileHeight(Vector2 position, int maxTilesDown, out float tileHeight)
        {
            int index1 = (int)((double)position.X / 16.0);
            int index2 = (int)((double)position.Y / 16.0);
            for (int index3 = 0; index3 <= maxTilesDown; ++index3)
            {
                Tile tile = Main.tile[index1, index2];
                bool flag1 = Main.tileSolid[(int)tile.type];
                bool flag2 = Main.tileSolidTop[(int)tile.type];
                ++index2;
            }
            tileHeight = 0.0f;
            return true;
        }