Beispiel #1
0
 void ForcePopulateLevel(Level l)
 {
     l.Populated = true;
     foreach (Container2D <GridSpace> room in l.RoomMaps)
     {
         MultiMap <GridSpace> roomMap = new MultiMap <GridSpace>();
         room.DrawAll((arr, x, y) =>
         {
             roomMap[x, y] = l[x, y];
             return(true);
         });
         SpawnSpec     spec = new SpawnSpec(Probability.SpawnRand, roomMap);
         SpawnModifier mod  = SpawnModifier.GetMod();
         mod.Modify(spec);
     }
 }
Beispiel #2
0
 public void Initialize()
 {
     SpawnModifier.RegisterModifiers();
 }
Beispiel #3
0
 private static void AddMod(SpawnModifier mod)
 {
     mods.Add(mod);
 }