feat: add Plains/Desert/Mountains/Forest biomes and registry
This commit is contained in:
20
World/WorldGen/BiomeRegistry.cs
Normal file
20
World/WorldGen/BiomeRegistry.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using VoxelEngine.World.Blocks;
|
||||
using VoxelEngine.World.WorldGen.Biomes;
|
||||
|
||||
namespace VoxelEngine.World.WorldGen;
|
||||
|
||||
public sealed class BiomeRegistry
|
||||
{
|
||||
public IBiome Plains { get; }
|
||||
public IBiome Desert { get; }
|
||||
public IBiome Mountains { get; }
|
||||
public IBiome Forest { get; }
|
||||
|
||||
public BiomeRegistry(int seed, BlockRegistry blocks)
|
||||
{
|
||||
this.Plains = new PlainsBiome(seed, blocks);
|
||||
this.Desert = new DesertBiome(seed, blocks);
|
||||
this.Mountains = new MountainsBiome(seed, blocks);
|
||||
this.Forest = new ForestBiome(seed, blocks);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user