1#include <Engine/Scene/SignalManager.hpp>
8 return m_entityCreatedCallbacks;
12 return m_entityDestroyedCallbacks;
16 return m_componentAddedCallbacks;
20 return m_componentRemovedCallbacks;
24 return m_roAddedCallbacks;
28 return m_roRemovedCallbacks;
32 return m_frameEndCallbacks;
37 notify<const ItemEntry&>( m_entityCreatedCallbacks, entity );
42 notify<const ItemEntry&>( m_entityDestroyedCallbacks, entity );
47 notify<const ItemEntry&>( m_componentAddedCallbacks, component );
52 notify<const ItemEntry&>( m_componentRemovedCallbacks, component );
56 CORE_ASSERT( ro.
isRoNode(),
"Invalid entry" );
57 notify<const ItemEntry&>( m_roAddedCallbacks, ro );
60 CORE_ASSERT( ro.
isRoNode(),
"Invalid entry" );
61 notify<const ItemEntry&>( m_roRemovedCallbacks, ro );
65 notify<>( m_frameEndCallbacks );
void fireEntityDestroyed(const ItemEntry &entity) const
Notifies all observers of an entity removal.
ItemObservable & getEntityCreatedNotifier()
void fireRenderObjectRemoved(const ItemEntry &ro) const
Notifies all observers of a render object removal.
Ra::Core::Utils::Observable<> FrameObservable
Type for frame observable.
void fireComponentAdded(const ItemEntry &component) const
Notifies all observers of a component creation.
void fireEntityCreated(const ItemEntry &entity) const
Notifies all observers of an entity creation.
void fireComponentRemoved(const ItemEntry &component) const
Notifies all observers of a component removal.
void fireRenderObjectAdded(const ItemEntry &ro) const
Notifies all observers of a render object creation.
void fireFrameEnded() const
Notifies all observers of a end of frame event.
Ra::Core::Utils::Observable< const ItemEntry & > ItemObservable
Type for item (entity, component or render object) observable.
hepler function to manage enum as underlying types in VariableSet
bool isComponentNode() const
Returns true if the item represents a component.
bool isEntityNode() const
Returns true if the item represents an entity.
bool isRoNode() const
Returns true if the item represents a render object.