R-Type  2
Doom but in better
Loading...
Searching...
No Matches
PlayerMiscellaneous.cpp File Reference
#include "PlayerMiscellaneous.hpp"
#include "Registry.hpp"
#include "IndexedZipper.hpp"
#include "PlayerInfo.hpp"
Include dependency graph for PlayerMiscellaneous.cpp:

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.