osb/source/game/terrain/StarConstantSelector.cpp
2023-06-20 14:33:09 +10:00

17 lines
369 B
C++

#include "StarConstantSelector.hpp"
namespace Star {
char const* const ConstantSelector::Name = "constant";
ConstantSelector::ConstantSelector(Json const& config, TerrainSelectorParameters const& parameters)
: TerrainSelector(Name, config, parameters) {
m_value = config.getFloat("value");
}
float ConstantSelector::get(int, int) const {
return m_value;
}
}