|
R-Type
Distributed multiplayer game engine in C++
|
Marker component indicating entity should be destroyed. More...
#include <PendingDestroy.hpp>


Public Member Functions | |
| PendingDestroy () | |
| Default constructor with OutOfBounds reason. | |
| PendingDestroy (DestroyReason reason) | |
| Constructor with specific reason. | |
| ~PendingDestroy () override=default | |
| DestroyReason | getReason () const |
| Get the destruction reason. | |
| ComponentType | getType () const override |
| Get component type ID. | |
Public Member Functions inherited from ecs::IComponent | |
| virtual | ~IComponent ()=default |
| Virtual destructor. | |
Private Attributes | |
| DestroyReason | _reason |
Marker component indicating entity should be destroyed.
When this component is added to an entity, the server will:
This allows proper client-side cleanup and prevents interpolation bugs.
Definition at line 34 of file PendingDestroy.hpp.
|
inline |
Default constructor with OutOfBounds reason.
Definition at line 39 of file PendingDestroy.hpp.
|
inlineexplicit |
Constructor with specific reason.
| reason | Why the entity is being destroyed |
Definition at line 45 of file PendingDestroy.hpp.
|
overridedefault |
|
inline |
Get the destruction reason.
Definition at line 53 of file PendingDestroy.hpp.
References _reason.
Referenced by Server::_processPendingDestructions().
|
inlineoverridevirtual |
Get component type ID.
Implements ecs::IComponent.
Definition at line 59 of file PendingDestroy.hpp.
|
private |
Definition at line 62 of file PendingDestroy.hpp.
Referenced by getReason().