/// <summary> /// Set a tile in the world using a BasicTile. /// </summary> /// <param name="tilePosition">The position to set the tile at.</param> /// <param name="tile">The BasicTile object to set.</param> public async Task SetTileAt(Vector3Int tilePosition, BasicTile tile) { // Await the operation SetTileOperation operation = new SetTileOperation(tilePosition, tile, this); await AddChunkOperation(operation); }
/// <summary> /// Set a tile in the world using a BasicTile. /// </summary> /// <param name="tilePosition">The position to set the tile at.</param> /// <param name="id">The id of the tile to set.</param> public async Task SetTileAt(Vector3Int tilePosition, string id) { // Await the operation SetTileOperation operation = new SetTileOperation(tilePosition, id, this); await AddChunkOperation(operation); }