Exemplo n.º 1
0
        /// <summary>
        /// Sets a tile at position X and Y to the tile instance specified.
        /// </summary>
        /// <param name="tile">
        /// A tile instance in which to store
        /// </param>
        /// <param name="x">X coordinate of the tile to store</param>
        /// <param name="y">Y coordinate of the tile to store</param>
        /// <remarks>
        /// Virtual function that derivatives must override if they want to implement getting of a tile from
        /// its backing store.
        /// </remarks>
        protected virtual void SetTile(Terraria.Tile tile, int x, int y)
        {
            HeapTile heapTile = new HeapTile(tileHeap, x, y);

            heapTile.CopyFrom(tile);
        }
 public static bool Tile_Inequality(Terraria.Tile t1, Terraria.Tile t2)
 {
     return(!t1.isTheSameAs(t2));
 }