mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-18 00:27:02 +08:00
fix: array not include
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include <array>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
@@ -67,7 +68,7 @@ inline Biome get_biome_from_noise(float temp, float humid) {
|
|||||||
return Biome::FOREST;
|
return Biome::FOREST;
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr inline std::array<float, 3> get_noise_frequencies_for_biome(Biome biome) {
|
inline std::array<float, 3> get_noise_frequencies_for_biome(Biome biome) {
|
||||||
using enum Biome;
|
using enum Biome;
|
||||||
switch (biome) {
|
switch (biome) {
|
||||||
case PLAIN:
|
case PLAIN:
|
||||||
@@ -83,7 +84,7 @@ constexpr inline std::array<float, 3> get_noise_frequencies_for_biome(Biome biom
|
|||||||
return {0.003f, 0.015f, 0.06f};
|
return {0.003f, 0.015f, 0.06f};
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr inline BiomeHeightRange get_biome_height_range(Biome biome) {
|
inline BiomeHeightRange get_biome_height_range(Biome biome) {
|
||||||
using enum Biome;
|
using enum Biome;
|
||||||
switch (biome) {
|
switch (biome) {
|
||||||
case PLAIN:
|
case PLAIN:
|
||||||
|
|||||||
Reference in New Issue
Block a user