mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-10 23:27:52 +02:00
daemon: make context_num_clients a public method
So it can be used from outside daemon/gamemode.c, to e.g. implement an ClientCount property.
This commit is contained in:
@@ -63,6 +63,13 @@ void game_mode_context_init(GameModeContext *self);
|
||||
*/
|
||||
void game_mode_context_destroy(GameModeContext *self);
|
||||
|
||||
/**
|
||||
* Query the number of currently registered clients.
|
||||
*
|
||||
* @returns The number of clients. A number > 0 means that gamemode is active.
|
||||
*/
|
||||
int game_mode_context_num_clients(GameModeContext *self);
|
||||
|
||||
/**
|
||||
* Register a new game client with the context
|
||||
*
|
||||
|
Reference in New Issue
Block a user