public override void Clone(BaseTileDataInstance copy) { base.Clone(copy); if (copy is TileDataInstance) { this.location = ((TileDataInstance)copy).location; this.layer = ((TileDataInstance)copy).layer; } }
public virtual void Clone(BaseTileDataInstance copy) { this.room = copy.Room; this.tileData = copy.tileData; this.properties = new Properties(this); this.properties.BaseProperties = tileData.Properties; this.modifiedProperties = new Properties(this); this.modifiedProperties.BaseProperties = tileData.Properties; this.properties.SetAll(copy.properties); }
public override void Clone(BaseTileDataInstance copy) { base.Clone(copy); if (copy is TileDataInstance) { this.location = ((TileDataInstance) copy).location; this.layer = ((TileDataInstance) copy).layer; } }
public void Remove(BaseTileDataInstance tile) { if (tile is TileDataInstance) RemoveTile((TileDataInstance) tile); else if (tile is EventTileDataInstance) RemoveEventTile((EventTileDataInstance) tile); }
public void SetSelectionBox(BaseTileDataInstance tile) { selectionBox = tile.GetBounds(); selectionBox.Point += tile.Room.Location * tile.Room.Size * GameSettings.TILE_SIZE; }
public void RemoveTileFromSelection(BaseTileDataInstance tile) { selectedTiles.Remove(tile); }
//----------------------------------------------------------------------------- // Individual Tile Selection //----------------------------------------------------------------------------- public bool IsTileInSelection(BaseTileDataInstance tile) { return selectedTiles.Contains(tile); }
public void AddTileToSelection(BaseTileDataInstance tile) { selectedTiles.Add(tile); selectedRoom = tile.Room; }