1#include <Core/CoreMacros.hpp>
2#include <Engine/Scene/ItemEntry.hpp>
3#include <Engine/Scene/SignalManager.hpp>
10 return m_entityCreatedCallbacks;
14 return m_entityDestroyedCallbacks;
18 return m_componentAddedCallbacks;
22 return m_componentRemovedCallbacks;
26 return m_roAddedCallbacks;
30 return m_roRemovedCallbacks;
34 return m_frameEndCallbacks;
39 notify<const ItemEntry&>( m_entityCreatedCallbacks, entity );
44 notify<const ItemEntry&>( m_entityDestroyedCallbacks, entity );
49 notify<const ItemEntry&>( m_componentAddedCallbacks, component );
54 notify<const ItemEntry&>( m_componentRemovedCallbacks, component );
58 CORE_ASSERT( ro.
isRoNode(),
"Invalid entry" );
59 notify<const ItemEntry&>( m_roAddedCallbacks, ro );
62 CORE_ASSERT( ro.
isRoNode(),
"Invalid entry" );
63 notify<const ItemEntry&>( m_roRemovedCallbacks, ro );
67 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.