My Project
|
The Move System class, it handles all packets related to movement by the clients. More...
#include <MoveSystem.hpp>
The Move System class, it handles all packets related to movement by the clients.
MoveSystem class that handles the movement of the entities.
void System::MoveSystem::operator() | ( | Registry & | registry, |
Sparse_array< component::cdirection_t > & | direction, | ||
Sparse_array< component::cposition_t > & | position, | ||
Sparse_array< component::cvelocity_t > & | velocity, | ||
Sparse_array< component::ctimer_t > & | timer | ||
) |
Function that will be automaticaly called while the client is working (on loop)
registry | The registry of the client |
direction | The sparse array of direction entities |
position | The sparse array of position entities |
velocity | The sparse array of velocity entities |
timer | The sparse array of timer entities |
void System::MoveSystem::operator() | ( | Registry & | registry, |
Sparse_array< component::cnetwork_queue_t > & | netqueue, | ||
Sparse_array< component::cdirection_t > & | direction, | ||
Sparse_array< component::cposition_t > & | position, | ||
Sparse_array< component::cvelocity_t > & | velocity, | ||
Sparse_array< component::ctimer_t > & | timer, | ||
Sparse_array< component::clobby_id_t > & | LobbyId, | ||
Sparse_array< component::clobbies_status_t > & | lobbiesStatus | ||
) |
The main handler for the Move System.
registry | The registry of the server |
netqueue | The sparse array of network entities |
direction | The sparse array of direction entities |
position | The sparse array of position entities |
velocity | The sparse array of velocity entities |
timer | The sparse array of timer entities |
lobbyId | The sparse array of lobby id entities |
lobbiesStatus | The sparse array of lobbies status entities |
void System::MoveSystem::sendKillEntityPacket | ( | Registry & | registry, |
uint16_t | id, | ||
Sparse_array< component::cnetwork_queue_t > & | netqueue | ||
) |
Function to add send packet to send network queue.
registry | The registry of the server |
id | The id of the killed entity |
netqueue | The sparse array of network entities |