Esempio n. 1
0
    public override void BindCells(bool flag)
    {
        TriCell      k    = Location;
        int          elev = k.Elevation;
        TriDirection tDir = EntranceDirection.Previous();

        for (int i = 0; i < 6; i++)
        {
            if (!k)
            {
                break;
            }
            k.Statics = flag?this:null;
            k         = k.GetNeighbor(tDir);
            tDir      = tDir.Next();
        }
    }
Esempio n. 2
0
 public ChamberPlacement(RandomGen randomGen, Chamber chamberPrefab, Direction entranceDirection) : this(randomGen, chamberPrefab)
 {
     _rotation = EntranceDirection.GetClockwiseRotation(entranceDirection);
 }