My Project
|
KillSystem class that handles the killing of entities. More...
#include <KillSystem.hpp>
Public Member Functions | |
KillSystem () | |
Construct a new Kill System object. | |
void | operator() (Registry ®istry, Sparse_array< component::cnetwork_queue_t > &network, Sparse_array< component::cserverid_t > &serverId, Sparse_array< component::ctype_t > &type, Sparse_array< component::csound_t > &sounds) |
Function that will be automaticaly called while the client is working (on loop) More... | |
void | killEntity (Registry ®istry, std::size_t id, Sparse_array< component::cserverid_t > &serverId, Sparse_array< component::ctype_t > &type, Sparse_array< component::csound_t > &sounds) |
A method to kill an entity. More... | |
KillSystem class that handles the killing of entities.
void System::KillSystem::killEntity | ( | Registry & | registry, |
std::size_t | id, | ||
Sparse_array< component::cserverid_t > & | serverId, | ||
Sparse_array< component::ctype_t > & | type, | ||
Sparse_array< component::csound_t > & | sounds | ||
) |
A method to kill an entity.
registry | The registry of the client |
id | The id of the entity to kill |
serverId | The sparse array of serverId entities |
void System::KillSystem::operator() | ( | Registry & | registry, |
Sparse_array< component::cnetwork_queue_t > & | network, | ||
Sparse_array< component::cserverid_t > & | serverId, | ||
Sparse_array< component::ctype_t > & | type, | ||
Sparse_array< component::csound_t > & | sounds | ||
) |
Function that will be automaticaly called while the client is working (on loop)
registry | The registry of the client |
network | The sparse array of network entities |
serverId | The sparse array of serverId entities |
type | The sparse array of type entities |
sounds | The sparse array of sound entities |