示例#1
0
        public MazePartPattern GetPattern(int row, int column)
        {
            MazePartPattern pattern = new MazePartPattern();

            pattern.north = NorthConnMatch(row, column);
            pattern.south = SouthConnMatch(row, column);
            pattern.west  = WestConnMatch(row, column);
            pattern.east  = EastConnMatch(row, column);
            return(pattern);
        }
示例#2
0
 public MazePartDefinition(MazePartDefinition data, int r, int c)
 {
     prefabName       = data.prefabName;
     generationWeight = data.generationWeight;
     willGenerate     = data.willGenerate;
     validNorth       = data.validNorth;
     validEast        = data.validEast;
     validSouth       = data.validSouth;
     validWest        = data.validWest;
     pattern          = data.pattern;
     rotation         = data.rotation;
     row    = r;
     column = c;
 }