You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classAWCW_HORRIBLE_API_DLL OptionManager final : public cocos2d::CCObject {
44
44
private:
45
-
std::vector<Option> m_options; // Array of registered options
46
-
std::vector<std::string> m_categories; // Array of auto-registered categories
45
+
std::vector<Option> m_options; // Array of registered options
46
+
std::vector<std::string> m_categories; // Array of auto-registered categories
47
47
48
-
std::unordered_map<std::string_view, std::vector<geode::Function<void(bool)>>> m_delegates; // Map of option ID to array of delegates to call when that option is toggled
48
+
std::unordered_map<std::string_view, std::vector<geode::Function<void(bool)>>> m_delegates; // Map of option ID to array of delegates to call when that option is toggled
49
49
50
50
protected:
51
-
OptionManager() = default; // Default constructor
51
+
OptionManager() = default; // Default constructor
52
52
53
-
OptionManager(const OptionManager&) = delete; // No copying
54
-
OptionManager& operator=(const OptionManager&) = delete; // No copy assignment
53
+
OptionManager(const OptionManager&) = delete; // No copying
54
+
OptionManager& operator=(const OptionManager&) = delete; // No copy assignment
55
55
56
56
/**
57
57
* Register a category if not already registered
@@ -167,13 +167,13 @@ namespace horrible {
167
167
};
168
168
169
169
// Statically register an option
170
-
#defineHORRIBLE_REGISTER_OPTION(opt) \
171
-
$execute { \
172
-
if (auto om = horrible::OptionManager::get()) om->registerOption(opt); \
173
-
}
170
+
#defineHORRIBLE_REGISTER_OPTION(opt) \
171
+
$execute { \
172
+
if (auto om = horrible::OptionManager::get()) om->registerOption(opt); \
173
+
}
174
174
175
175
// Delegate hooks to OptionManager for dynamic toggling
0 commit comments