[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
In order to be informed about player joins and leaves, and the status of the game (running, done, ...), the ggzdmod library is essential to use.
This is how a simple C game server embeds the necessary function calls:
@verbatim static void callback_state(GGZdMod *ggz, GGZdModEvent event, void *data) { /* Evaluate state */ }
int main() { ... ggzdmod_set_handler(ggzdmod, GGZDMOD_EVENT_STATE, callback_state); ... }