public override void EditSpawnRange(Player player, ref int spawnRangeX, ref int spawnRangeY, ref int safeRangeX, ref int safeRangeY)
 {
     foreach (var biome in BiomeManager.GetAll())
     {
         biome.EditSpawnRange(player, ref spawnRangeX, ref spawnRangeY, ref safeRangeX, ref safeRangeY);
     }
 }
Beispiel #2
0
 public override void ModifySunLightColor(ref Color tileColor, ref Color backgroundColor)
 {
     foreach (var biome in BiomeManager.GetAll())
     {
         biome.ModifySunlight(ref tileColor, ref backgroundColor);
     }
 }
 public override void EditSpawnPool(IDictionary <int, float> pool, NPCSpawnInfo spawnInfo)
 {
     foreach (var biome in BiomeManager.GetAll())
     {
         biome.EditSpawnPool(pool, spawnInfo);
     }
 }
Beispiel #4
0
 public override void ReceiveCustomBiomes(BinaryReader reader)
 {
     foreach (var biome in BiomeManager.GetAll())
     {
         biome.SetInBiome(player, reader.ReadBoolean());
     }
 }
 public override void EditSpawnRate(Player player, ref int spawnRate, ref int maxSpawns)
 {
     foreach (var biome in BiomeManager.GetAll())
     {
         biome.EditSpawnRate(player, ref spawnRate, ref maxSpawns);
     }
 }
Beispiel #6
0
 public override void SendCustomBiomes(BinaryWriter writer)
 {
     foreach (var biome in BiomeManager.GetAll())
     {
         writer.Write(biome.GetInBiome(player));
     }
 }
Beispiel #7
0
 public override void CopyCustomBiomesTo(Player other)
 {
     foreach (var biome in BiomeManager.GetAll())
     {
         biome.SetInBiome(other, biome.GetInBiome(player));
     }
 }
Beispiel #8
0
 public override void UpdateBiomeVisuals()
 {
     foreach (var biome in BiomeManager.GetAll())
     {
         biome.OnUpdateVisuals();
     }
 }
Beispiel #9
0
 public override void UpdateBiomes()
 {
     foreach (var biome in BiomeManager.GetAll())
     {
         biome.UpdateBiome(player);
     }
 }
Beispiel #10
0
 public override void UpdateMusic(ref int music, ref MusicPriority priority)
 {
     foreach (var biome in BiomeManager.GetAll())
     {
         if (biome.GetInBiome(Main.LocalPlayer))
         {
             biome.ModifyMusic(ref music, ref priority);
         }
     }
 }
Beispiel #11
0
 public override bool CustomBiomesMatch(Player other)
 {
     return(BiomeManager.GetAll().All(b => b.GetInBiome(player) == b.GetInBiome(other)));
 }