public void PlaceSubMap(MapCoordinate position, IMap selectedVault) { position = position - selectedVault.Origin; foreach (var cell in selectedVault.Cells) { SetCell(position + cell.Key.ToVector(), cell.Value); } foreach (var mapCommand in selectedVault.MapGenCommands) { var newMapCommand = new MapGenCommand { MapGenCommandType = mapCommand.MapGenCommandType, Vector = mapCommand.Vector + position.ToVector(), Parameters = mapCommand.Parameters }; MapGenCommands.Add(newMapCommand); } }
public void AddCommand(MapGenCommand command) { MapGenCommands.Add(command); }