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