public FreeformConstraints(ColorMap colorMap)
    {
        this.colorMap = colorMap;
        this.groups   = new MZIntMap <Group>();
        this.maxKeys  = DefaultMaxKeys;

        AnalyzeMap();
    }
    public CountConstraints(int maxSpaces, int maxKeys, int maxSwitches)
    {
        this.maxSpaces   = maxSpaces;
        this.maxKeys     = maxKeys;
        this.maxSwitches = maxSwitches;

        gridCoords = new MZIntMap <Vector2Int>();
        roomIds    = new Dictionary <Vector2Int, int>();
        Vector2Int first = new Vector2Int(0, 0);

        firstRoomId = GetRoomId(first);
    }
Esempio n. 3
0
 public MZDungeon()
 {
     rooms  = new MZIntMap <MZRoom>();
     bounds = new MZRect(Int32.MaxValue, Int32.MaxValue,
                         Int32.MinValue, Int32.MinValue);
 }