예제 #1
0
        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);
            }
        }
예제 #2
0
 public void AddCommand(MapGenCommand command)
 {
     MapGenCommands.Add(command);
 }