vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::ISceneObserver Class Referenceabstract

Observer notified by a Scene when an entity is destroyed. More...

#include <scene_observer.h>

Inheritance diagram for Vkm::Engine::ISceneObserver:
Vkm::Engine::BehaviorSystem Vkm::Engine::RagdollSystem

Public Member Functions

virtual void onEntityDestroyed (EntityId id)=0
 Called just before id's components are removed.

Detailed Description

Observer notified by a Scene when an entity is destroyed.

Registered via Scene::addObserver(). Lets a system react to deletions without Scene depending on it. Scene::clear() and Scene::swap() do not notify.

Member Function Documentation

◆ onEntityDestroyed()

virtual void Vkm::Engine::ISceneObserver::onEntityDestroyed ( EntityId id)
pure virtual

Called just before id's components are removed.

Parameters
idEntity being destroyed; still alive, components intact.

Implemented in Vkm::Engine::BehaviorSystem, and Vkm::Engine::RagdollSystem.


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