mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:10:06 +00:00
Save loop delay, speed, and time to settings on shutdown
This commit is contained in:
parent
8f0afbcd1c
commit
e8e3032dcd
11 changed files with 138 additions and 19 deletions
|
|
@ -33,6 +33,9 @@ public:
|
|||
SettingsContainer<std::vector<std::int64_t>>& font_sizes() const;
|
||||
SettingsVariable<std::int64_t>& grid_height() const;
|
||||
SettingsVariable<std::int64_t>& grid_width() const;
|
||||
SettingsVariable<std::int64_t>& loop_delay() const;
|
||||
SettingsVariable<double>& loop_speed() const;
|
||||
SettingsVariable<std::int64_t>& loop_time() const;
|
||||
SettingsVariable<std::string>& map_provider() const;
|
||||
SettingsVariable<std::string>& mapbox_api_key() const;
|
||||
SettingsVariable<std::string>& maptiler_api_key() const;
|
||||
|
|
@ -41,6 +44,8 @@ public:
|
|||
friend bool operator==(const GeneralSettings& lhs,
|
||||
const GeneralSettings& rhs);
|
||||
|
||||
bool Shutdown();
|
||||
|
||||
private:
|
||||
std::unique_ptr<GeneralSettingsImpl> p;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue