My Project
Public Member Functions | List of all members
System::KillSystem Class Reference

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 &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) More...
 
void 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. More...
 

Detailed Description

KillSystem class that handles the killing of entities.

Member Function Documentation

◆ killEntity()

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.

Parameters
registryThe registry of the client
idThe id of the entity to kill
serverIdThe sparse array of serverId entities

◆ operator()()

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)

Parameters
registryThe registry of the client
networkThe sparse array of network entities
serverIdThe sparse array of serverId entities
typeThe sparse array of type entities
soundsThe sparse array of sound entities

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