GrasslandBiom.h 721 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "BiomGenerator.h"
  3. #include "StaticRegistry.h"
  4. class GrasslandBiom : public BiomGenerator
  5. {
  6. Noise* heightNoise;
  7. Noise* undergroundDirdNoise;
  8. Noise* surfaceSandNoise;
  9. Noise* undergroundGravelNoise;
  10. // TODO: Noise* anySmallOreNoise;
  11. // TODO: add water rivers
  12. public:
  13. GrasslandBiom();
  14. ~GrasslandBiom();
  15. Framework::Either<Block*, int> generateSurfaceBlock(
  16. int x, int y, int z) override;
  17. Framework::Either<Block*, int> generateBelowSurfaceBlock(
  18. int x, int y, int z) override;
  19. Framework::Either<Block*, int> generateCaveBlock(
  20. int x, int y, int z) override;
  21. Noise* zHeightMapNoise() override;
  22. void setSeed(int seed) override;
  23. };