functions exported by the game subsystem More...
#include <game.h>
Public Member Functions | |
void (EXPORT *Init)(void) | |
void (EXPORT *Shutdown)(void) | |
void (EXPORT *SpawnEntities)(const char *mapname | |
qboolean (EXPORT *ClientConnect)(player_t *client | |
qboolean (EXPORT *ClientBegin)(player_t *client) | |
void (EXPORT *ClientSpawn)(player_t *client) | |
void (EXPORT *ClientUserinfoChanged)(player_t *client | |
void (EXPORT *ClientDisconnect)(player_t *client) | |
void (EXPORT *ClientCommand)(player_t *client) | |
int (EXPORT *ClientAction)(player_t *client) | |
void (EXPORT *ClientEndRound)(player_t *client) | |
void (EXPORT *ClientTeamInfo)(const player_t *client) | |
void (EXPORT *ClientInitActorStates)(const player_t *client) | |
int (EXPORT *ClientGetTeamNum)(const player_t *client) | |
int (EXPORT *ClientGetTeamNumPref)(const player_t *client) | |
qboolean (EXPORT *ClientIsReady)(const player_t *client) | |
int (EXPORT *ClientGetActiveTeam)(void) | |
const char *EXPORT * | ClientGetName (int pnum) |
qboolean (EXPORT *RunFrame)(void) | |
void (EXPORT *ServerCommand)(void) | |
Data Fields | |
int | apiversion |
qboolean | day |
qboolean const char * | entstring |
char * | userinfo |
char size_t | userinfoSize |
struct edict_s * | edicts |
int | edict_size |
int | num_edicts |
int | max_edicts |
struct player_s * | players |
int | player_size |
int | maxplayersperteam |
functions exported by the game subsystem
Definition at line 230 of file game.h.
const char* EXPORT* game_export_t::ClientGetName | ( | int | pnum | ) |
Referenced by GetGameAPI().
game_export_t::int | ( | EXPORT * | ClientGetActiveTeam | ) |
game_export_t::int | ( | EXPORT * | ClientGetTeamNumPref | ) | const |
game_export_t::int | ( | EXPORT * | ClientGetTeamNum | ) | const |
game_export_t::int | ( | EXPORT * | ClientAction | ) |
game_export_t::qboolean | ( | EXPORT * | RunFrame | ) |
game_export_t::qboolean | ( | EXPORT * | ClientIsReady | ) | const |
game_export_t::qboolean | ( | EXPORT * | ClientBegin | ) |
game_export_t::qboolean | ( | EXPORT * | ClientConnect | ) |
game_export_t::void | ( | EXPORT * | ServerCommand | ) |
ServerCommand will be called when an "sv <command>" command is issued on the server console. The game can issue gi.Cmd_Argc() / gi.Cmd_Argv() commands to get the rest of the parameters
game_export_t::void | ( | EXPORT * | ClientInitActorStates | ) | const |
game_export_t::void | ( | EXPORT * | ClientTeamInfo | ) | const |
game_export_t::void | ( | EXPORT * | ClientEndRound | ) |
game_export_t::void | ( | EXPORT * | ClientCommand | ) |
game_export_t::void | ( | EXPORT * | ClientDisconnect | ) |
game_export_t::void | ( | EXPORT * | ClientUserinfoChanged | ) |
game_export_t::void | ( | EXPORT * | ClientSpawn | ) |
game_export_t::void | ( | EXPORT * | SpawnEntities | ) | const |
game_export_t::void | ( | EXPORT * | Shutdown | ) |
game_export_t::void | ( | EXPORT * | Init | ) |
the init function will only be called when a game starts, not each time a level is loaded. Persistant data for clients and the server can be allocated in init
Definition at line 231 of file game.h.
Referenced by GetGameAPI(), and SV_InitGameProgs().
Definition at line 275 of file game.h.
Referenced by GetGameAPI().
struct edict_s* game_export_t::edicts |
The size will be fixed when ge->Init() is called
Definition at line 274 of file game.h.
Referenced by G_Init(), SV_LinkEdict(), and SV_Trace().
qboolean const char* game_export_t::entstring |
current number, <= max_edicts
Definition at line 276 of file game.h.
Referenced by G_EdictsGetNewEdict(), G_EdictsGetNext(), G_EdictsGetNextActor(), G_EdictsGetNumber(), G_EdictsIsValidNum(), G_Init(), and SV_TouchEdicts().
Definition at line 280 of file game.h.
Referenced by GetGameAPI().
struct player_s* game_export_t::players |
char * game_export_t::userinfo |
char size_t game_export_t::userinfoSize |