R-Type  2
Doom but in better
Loading...
Searching...
No Matches
PlayerMiscellaneous.hpp File Reference
#include <cstddef>
Include dependency graph for PlayerMiscellaneous.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::size_t getIdByClientId (Registry &r, const unsigned int client_id)
 Gets entity id by the player's client id.
 

Function Documentation

◆ getIdByClientId()

std::size_t getIdByClientId ( Registry & r,
const unsigned int client_id )

Gets entity id by the player's client id.

Parameters
rRegistry of the game.
client_idThe Id of the player's client.
Returns
Id of the entity.

Definition at line 6 of file PlayerMiscellaneous.cpp.