osb/source/game/terrain/StarConstantSelector.cpp

17 lines
369 B
C++
Raw Permalink Normal View History

2023-06-20 04:33:09 +00:00
#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;
}
}