private IEnumerable <TileRotationSet> MakeRing(int ring)
    {
        List <TileRotationSet> ret = new List <TileRotationSet>();

        for (int i = 0; i < ring; i++)
        {
            MapmakerTile        masterTile = null;
            List <MapmakerTile> tiles      = new List <MapmakerTile>();
            foreach (RingSideBlueprint blueprint in _ringSideBlueprints)
            {
                MapmakerTile tile = DoRingSide(blueprint, ring, i);
                if (blueprint.IsMasterSide)
                {
                    masterTile = tile;
                }
                else
                {
                    tiles.Add(tile);
                }
            }
            TileRotationSet retItem = new TileRotationSet(this, masterTile, tiles);
            ret.Add(retItem);
        }
        return(ret);
    }
Beispiel #2
0
 public TileRotationSet(MapMakerScript main, MapmakerTile masterTile, IEnumerable <MapmakerTile> mirroredTiles)
 {
     Main          = main;
     MasterTile    = masterTile;
     MirroredTiles = mirroredTiles;
 }