Ember
Loading...
Searching...
No Matches
EmberCore::BehaviorTreeConfig Class Reference

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
SyncSettingsGetSyncSettings ()
const SyncSettingsGetSyncSettings () const
VisualSettingsGetVisualSettings ()
const VisualSettingsGetVisualSettings () const
InteractionSettingsGetInteractionSettings ()
const InteractionSettingsGetInteractionSettings () const
DebugSettingsGetDebugSettings ()
const DebugSettingsGetDebugSettings () 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< ConfigChangeCallbackchangeCallbacks_

Detailed Description

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.

Member Typedef Documentation

◆ ConfigChangeCallback

using EmberCore::BehaviorTreeConfig::ConfigChangeCallback = std::function<void(const std::string &category, const std::string &setting)>

Definition at line 108 of file BehaviorTreeConfig.h.

Constructor & Destructor Documentation

◆ BehaviorTreeConfig()

EmberCore::BehaviorTreeConfig::BehaviorTreeConfig ( )

Definition at line 10 of file BehaviorTreeConfig.cpp.

◆ ~BehaviorTreeConfig()

EmberCore::BehaviorTreeConfig::~BehaviorTreeConfig ( )
default

Member Function Documentation

◆ ClampValues()

void EmberCore::BehaviorTreeConfig::ClampValues ( )
private

Definition at line 256 of file BehaviorTreeConfig.cpp.

◆ GetDebugSettings() [1/2]

DebugSettings & EmberCore::BehaviorTreeConfig::GetDebugSettings ( )
inline

Definition at line 99 of file BehaviorTreeConfig.h.

◆ GetDebugSettings() [2/2]

const DebugSettings & EmberCore::BehaviorTreeConfig::GetDebugSettings ( ) const
inline

Definition at line 100 of file BehaviorTreeConfig.h.

◆ GetInteractionSettings() [1/2]

InteractionSettings & EmberCore::BehaviorTreeConfig::GetInteractionSettings ( )
inline

Definition at line 96 of file BehaviorTreeConfig.h.

◆ GetInteractionSettings() [2/2]

const InteractionSettings & EmberCore::BehaviorTreeConfig::GetInteractionSettings ( ) const
inline

Definition at line 97 of file BehaviorTreeConfig.h.

◆ GetSyncSettings() [1/2]

SyncSettings & EmberCore::BehaviorTreeConfig::GetSyncSettings ( )
inline

Definition at line 90 of file BehaviorTreeConfig.h.

◆ GetSyncSettings() [2/2]

const SyncSettings & EmberCore::BehaviorTreeConfig::GetSyncSettings ( ) const
inline

Definition at line 91 of file BehaviorTreeConfig.h.

◆ GetValidationErrors()

std::vector< std::string > EmberCore::BehaviorTreeConfig::GetValidationErrors ( ) const

Definition at line 219 of file BehaviorTreeConfig.cpp.

◆ GetVisualSettings() [1/2]

VisualSettings & EmberCore::BehaviorTreeConfig::GetVisualSettings ( )
inline

Definition at line 93 of file BehaviorTreeConfig.h.

◆ GetVisualSettings() [2/2]

const VisualSettings & EmberCore::BehaviorTreeConfig::GetVisualSettings ( ) const
inline

Definition at line 94 of file BehaviorTreeConfig.h.

◆ LoadFromFile()

bool EmberCore::BehaviorTreeConfig::LoadFromFile ( const EmberCore::String & filename)

Definition at line 34 of file BehaviorTreeConfig.cpp.

◆ NotifyChange()

void EmberCore::BehaviorTreeConfig::NotifyChange ( const std::string & category,
const std::string & setting )
private

Definition at line 246 of file BehaviorTreeConfig.cpp.

◆ RegisterChangeCallback()

void EmberCore::BehaviorTreeConfig::RegisterChangeCallback ( const ConfigChangeCallback & callback)

Definition at line 150 of file BehaviorTreeConfig.cpp.

◆ ResetToDefaults()

void EmberCore::BehaviorTreeConfig::ResetToDefaults ( )

Definition at line 15 of file BehaviorTreeConfig.cpp.

◆ SaveToFile()

bool EmberCore::BehaviorTreeConfig::SaveToFile ( const EmberCore::String & filename) const

Definition at line 92 of file BehaviorTreeConfig.cpp.

◆ SetCenteringEnabled()

void EmberCore::BehaviorTreeConfig::SetCenteringEnabled ( bool enabled,
bool animated = false )

Definition at line 181 of file BehaviorTreeConfig.cpp.

◆ SetDebugMode()

void EmberCore::BehaviorTreeConfig::SetDebugMode ( bool enabled)

Definition at line 210 of file BehaviorTreeConfig.cpp.

◆ SetHighlightingEnabled()

void EmberCore::BehaviorTreeConfig::SetHighlightingEnabled ( bool enabled)

Definition at line 202 of file BehaviorTreeConfig.cpp.

◆ SetSyncEnabled()

void EmberCore::BehaviorTreeConfig::SetSyncEnabled ( bool hierarchyToScene,
bool sceneToHierarchy )

Definition at line 160 of file BehaviorTreeConfig.cpp.

◆ UnregisterChangeCallback()

void EmberCore::BehaviorTreeConfig::UnregisterChangeCallback ( const ConfigChangeCallback & callback)

Definition at line 154 of file BehaviorTreeConfig.cpp.

◆ ValidateSettings()

bool EmberCore::BehaviorTreeConfig::ValidateSettings ( ) const

Definition at line 217 of file BehaviorTreeConfig.cpp.

Member Data Documentation

◆ changeCallbacks_

std::vector<ConfigChangeCallback> EmberCore::BehaviorTreeConfig::changeCallbacks_
private

Definition at line 128 of file BehaviorTreeConfig.h.

◆ debugSettings_

DebugSettings EmberCore::BehaviorTreeConfig::debugSettings_
private

Definition at line 126 of file BehaviorTreeConfig.h.

◆ interactionSettings_

InteractionSettings EmberCore::BehaviorTreeConfig::interactionSettings_
private

Definition at line 125 of file BehaviorTreeConfig.h.

◆ syncSettings_

SyncSettings EmberCore::BehaviorTreeConfig::syncSettings_
private

Definition at line 123 of file BehaviorTreeConfig.h.

◆ visualSettings_

VisualSettings EmberCore::BehaviorTreeConfig::visualSettings_
private

Definition at line 124 of file BehaviorTreeConfig.h.


The documentation for this class was generated from the following files: