![]() |
Ember
|
Configuration settings for the behavior tree editor. More...
#include <BehaviorTreeConfig.h>
Classes | |
| struct | DebugSettings |
| Debugging and development settings. More... | |
| struct | InteractionSettings |
| Interaction behavior configuration settings. More... | |
| struct | SyncSettings |
| Synchronization configuration settings. More... | |
| struct | VisualSettings |
| Visual appearance configuration settings. More... | |
Public Types | |
| using | ConfigChangeCallback = std::function<void(const std::string &category, const std::string &setting)> |
Public Member Functions | |
| BehaviorTreeConfig () | |
| ~BehaviorTreeConfig ()=default | |
| SyncSettings & | GetSyncSettings () |
| const SyncSettings & | GetSyncSettings () const |
| VisualSettings & | GetVisualSettings () |
| const VisualSettings & | GetVisualSettings () const |
| InteractionSettings & | GetInteractionSettings () |
| const InteractionSettings & | GetInteractionSettings () const |
| DebugSettings & | GetDebugSettings () |
| const DebugSettings & | GetDebugSettings () const |
| void | ResetToDefaults () |
| bool | LoadFromFile (const EmberCore::String &filename) |
| bool | SaveToFile (const EmberCore::String &filename) const |
| void | RegisterChangeCallback (const ConfigChangeCallback &callback) |
| void | UnregisterChangeCallback (const ConfigChangeCallback &callback) |
| void | SetSyncEnabled (bool hierarchyToScene, bool sceneToHierarchy) |
| void | SetCenteringEnabled (bool enabled, bool animated=false) |
| void | SetHighlightingEnabled (bool enabled) |
| void | SetDebugMode (bool enabled) |
| bool | ValidateSettings () const |
| std::vector< std::string > | GetValidationErrors () const |
Private Member Functions | |
| void | NotifyChange (const std::string &category, const std::string &setting) |
| void | ClampValues () |
Private Attributes | |
| SyncSettings | syncSettings_ |
| VisualSettings | visualSettings_ |
| InteractionSettings | interactionSettings_ |
| DebugSettings | debugSettings_ |
| std::vector< ConfigChangeCallback > | changeCallbacks_ |
Configuration settings for the behavior tree editor.
This class manages all configurable aspects of the behavior tree editor, including synchronization settings, visual preferences, and interaction modes. Changes can be made dynamically at runtime and are immediately applied.
Definition at line 18 of file BehaviorTreeConfig.h.
| using EmberCore::BehaviorTreeConfig::ConfigChangeCallback = std::function<void(const std::string &category, const std::string &setting)> |
Definition at line 108 of file BehaviorTreeConfig.h.
| EmberCore::BehaviorTreeConfig::BehaviorTreeConfig | ( | ) |
Definition at line 10 of file BehaviorTreeConfig.cpp.
|
default |
|
private |
Definition at line 256 of file BehaviorTreeConfig.cpp.
|
inline |
Definition at line 99 of file BehaviorTreeConfig.h.
|
inline |
Definition at line 100 of file BehaviorTreeConfig.h.
|
inline |
Definition at line 96 of file BehaviorTreeConfig.h.
|
inline |
Definition at line 97 of file BehaviorTreeConfig.h.
|
inline |
Definition at line 90 of file BehaviorTreeConfig.h.
|
inline |
Definition at line 91 of file BehaviorTreeConfig.h.
| std::vector< std::string > EmberCore::BehaviorTreeConfig::GetValidationErrors | ( | ) | const |
Definition at line 219 of file BehaviorTreeConfig.cpp.
|
inline |
Definition at line 93 of file BehaviorTreeConfig.h.
|
inline |
Definition at line 94 of file BehaviorTreeConfig.h.
| bool EmberCore::BehaviorTreeConfig::LoadFromFile | ( | const EmberCore::String & | filename | ) |
Definition at line 34 of file BehaviorTreeConfig.cpp.
|
private |
Definition at line 246 of file BehaviorTreeConfig.cpp.
| void EmberCore::BehaviorTreeConfig::RegisterChangeCallback | ( | const ConfigChangeCallback & | callback | ) |
Definition at line 150 of file BehaviorTreeConfig.cpp.
| void EmberCore::BehaviorTreeConfig::ResetToDefaults | ( | ) |
Definition at line 15 of file BehaviorTreeConfig.cpp.
| bool EmberCore::BehaviorTreeConfig::SaveToFile | ( | const EmberCore::String & | filename | ) | const |
Definition at line 92 of file BehaviorTreeConfig.cpp.
| void EmberCore::BehaviorTreeConfig::SetCenteringEnabled | ( | bool | enabled, |
| bool | animated = false ) |
Definition at line 181 of file BehaviorTreeConfig.cpp.
| void EmberCore::BehaviorTreeConfig::SetDebugMode | ( | bool | enabled | ) |
Definition at line 210 of file BehaviorTreeConfig.cpp.
| void EmberCore::BehaviorTreeConfig::SetHighlightingEnabled | ( | bool | enabled | ) |
Definition at line 202 of file BehaviorTreeConfig.cpp.
| void EmberCore::BehaviorTreeConfig::SetSyncEnabled | ( | bool | hierarchyToScene, |
| bool | sceneToHierarchy ) |
Definition at line 160 of file BehaviorTreeConfig.cpp.
| void EmberCore::BehaviorTreeConfig::UnregisterChangeCallback | ( | const ConfigChangeCallback & | callback | ) |
Definition at line 154 of file BehaviorTreeConfig.cpp.
| bool EmberCore::BehaviorTreeConfig::ValidateSettings | ( | ) | const |
Definition at line 217 of file BehaviorTreeConfig.cpp.
|
private |
Definition at line 128 of file BehaviorTreeConfig.h.
|
private |
Definition at line 126 of file BehaviorTreeConfig.h.
|
private |
Definition at line 125 of file BehaviorTreeConfig.h.
|
private |
Definition at line 123 of file BehaviorTreeConfig.h.
|
private |
Definition at line 124 of file BehaviorTreeConfig.h.