RightClick() public method

public RightClick ( int i, int j ) : void
i int
j int
return void
Example #1
0
        //in Terraria.Player.Update in if statements involving controluseTile and releaseUseTile
        //  at end of type-check if else chain add TileLoader.RightClick(Player.tileTargetX, Player.tileTargetY);
        public static void RightClick(int i, int j)
        {
            int     type    = Main.tile[i, j].type;
            ModTile modTile = GetTile(type);

            if (modTile != null)
            {
                modTile.RightClick(i, j);
            }
            foreach (GlobalTile globalTile in globalTiles)
            {
                globalTile.RightClick(i, j, type);
            }
        }