示例#1
0
        public static void Import()
        {
            TileChooser.Reset();

            WeightListUtils.Add("Black", 10, TileChooser.ObstacleTileWeightList);
            WeightListUtils.Add("Black", 10, TileChooser.WallTileWeightList);

            WeightListUtils.Add("White", 10, TileChooser.RoadTileWeightList);
            WeightListUtils.Add("White", 10, TileChooser.CrossTileWeightList);
            WeightListUtils.Add("White", 10, TileChooser.RoomTileWeightList);
        }
        public void AddCross(bool up, bool down, bool left, bool right, string crossName, double weight)
        {
            var crossType = new Tuple <bool, bool, bool, bool>(up, down, left, right);

            WeightListUtils.Add(crossName, weight, CrossWeightLists[crossType]);
        }
 public void AddObstacle(string obstacleName, double weight)
 {
     WeightListUtils.Add(obstacleName, weight, ObstacleWeightList);
 }