UFO: Alien Invasion
Loading...
Searching...
No Matches
game_export_t Struct Reference

functions exported by the game subsystem More...

#include <game.h>

Collaboration diagram for game_export_t:
Collaboration graph

Public Member Functions

 void (EXPORT *Init)(void)
 void (EXPORT *Shutdown)(void)
 void (EXPORT *SpawnEntities)(const char *mapname
 bool (EXPORT *ClientConnect)(player_t *client
 bool (EXPORT *ClientBegin)(player_t &client)
 void (EXPORT *ClientStartMatch)(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)
 bool (EXPORT *ClientIsReady)(const player_t *client)
 int (EXPORT *ClientGetActiveTeam)(void)
const char *EXPORTClientGetName (int pnum)
 bool (EXPORT *RunFrame)(void)
 void (EXPORT *ServerCommand)(void)

Data Fields

int apiversion
bool day
bool const char * entstring
char * userinfo
char size_t userinfoSize
const char * userinfo
edict_tedicts
int edict_size
int num_edicts
int max_edicts
player_tplayers
int player_size
int maxplayersperteam

Detailed Description

functions exported by the game subsystem

Definition at line 317 of file game.h.

Member Function Documentation

◆ bool() [1/4]

game_export_t::bool ( EXPORT * ClientBegin) &

References EXPORT.

◆ bool() [2/4]

game_export_t::bool ( EXPORT * ClientConnect)

References EXPORT, userinfo, and userinfoSize.

◆ bool() [3/4]

game_export_t::bool ( EXPORT * ClientIsReady) const

References EXPORT.

◆ bool() [4/4]

game_export_t::bool ( EXPORT * RunFrame)

References EXPORT, and void().

◆ ClientGetName()

const char *EXPORT * game_export_t::ClientGetName ( int pnum)

References ClientGetName(), and EXPORT.

Referenced by ClientGetName().

◆ int() [1/3]

game_export_t::int ( EXPORT * ClientAction) &

References EXPORT.

◆ int() [2/3]

game_export_t::int ( EXPORT * ClientGetActiveTeam)

References EXPORT, and void().

◆ int() [3/3]

game_export_t::int ( EXPORT * ClientGetTeamNum) const &

References EXPORT.

◆ void() [1/11]

game_export_t::void ( EXPORT * ClientCommand) &

References EXPORT.

◆ void() [2/11]

game_export_t::void ( EXPORT * ClientDisconnect) &

References EXPORT.

◆ void() [3/11]

game_export_t::void ( EXPORT * ClientEndRound) &

References EXPORT.

◆ void() [4/11]

game_export_t::void ( EXPORT * ClientInitActorStates) const &

References EXPORT.

◆ void() [5/11]

game_export_t::void ( EXPORT * ClientStartMatch) &

References EXPORT.

◆ void() [6/11]

game_export_t::void ( EXPORT * ClientTeamInfo) const &

References EXPORT.

◆ void() [7/11]

game_export_t::void ( EXPORT * ClientUserinfoChanged) &

◆ void() [8/11]

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

References EXPORT, and void().

Referenced by bool(), int(), void(), void(), and void().

◆ void() [9/11]

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

References EXPORT, and void().

◆ void() [10/11]

game_export_t::void ( EXPORT * Shutdown)

References EXPORT, and void().

◆ void() [11/11]

game_export_t::void ( EXPORT * SpawnEntities) const

Field Documentation

◆ apiversion

int game_export_t::apiversion

Definition at line 318 of file game.h.

◆ day

bool game_export_t::day

Definition at line 327 of file game.h.

◆ edict_size

int game_export_t::edict_size

Definition at line 361 of file game.h.

◆ edicts

edict_t* game_export_t::edicts

The size will be fixed when ge->Init() is called

Definition at line 360 of file game.h.

◆ entstring

bool const char* game_export_t::entstring

Definition at line 327 of file game.h.

◆ max_edicts

int game_export_t::max_edicts

Definition at line 363 of file game.h.

◆ maxplayersperteam

int game_export_t::maxplayersperteam

Definition at line 367 of file game.h.

◆ num_edicts

int game_export_t::num_edicts

current number, <= max_edicts

Definition at line 362 of file game.h.

◆ player_size

int game_export_t::player_size

Definition at line 366 of file game.h.

◆ players

player_t* game_export_t::players

Definition at line 365 of file game.h.

◆ userinfo [1/2]

const char* game_export_t::userinfo

Definition at line 332 of file game.h.

◆ userinfo [2/2]

char* game_export_t::userinfo

Definition at line 329 of file game.h.

Referenced by bool().

◆ userinfoSize

char size_t game_export_t::userinfoSize

Definition at line 329 of file game.h.

Referenced by bool().


The documentation for this struct was generated from the following file: