mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Fix build
This commit is contained in:
parent
e0ea994656
commit
c77d353086
@ -33,6 +33,8 @@ std::vector<int> IGameSettings::getVector(EGameSettings option) const
|
||||
return getValue(option).convertTo<std::vector<int>>();
|
||||
}
|
||||
|
||||
GameSettings::~GameSettings() = default;
|
||||
|
||||
GameSettings::GameSettings()
|
||||
: gameSettings(static_cast<size_t>(EGameSettings::OPTIONS_COUNT))
|
||||
{
|
||||
|
@ -73,6 +73,7 @@ class DLL_LINKAGE IGameSettings
|
||||
{
|
||||
public:
|
||||
virtual const JsonNode & getValue(EGameSettings option) const = 0;
|
||||
virtual ~IGameSettings() = default;
|
||||
|
||||
bool getBoolean(EGameSettings option) const;
|
||||
int64_t getInteger(EGameSettings option) const;
|
||||
@ -80,12 +81,14 @@ public:
|
||||
std::vector<int> getVector(EGameSettings option) const;
|
||||
};
|
||||
|
||||
class DLL_LINKAGE GameSettings final : public IGameSettings
|
||||
class DLL_LINKAGE GameSettings final : public IGameSettings, boost::noncopyable
|
||||
{
|
||||
std::vector<JsonNode> gameSettings;
|
||||
|
||||
public:
|
||||
GameSettings();
|
||||
~GameSettings();
|
||||
|
||||
void load(const JsonNode & input);
|
||||
const JsonNode & getValue(EGameSettings option) const override;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user