UFO: Alien Invasion
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) &

◆ bool() [2/4]

game_export_t::bool ( EXPORT ClientConnect)

◆ bool() [3/4]

game_export_t::bool ( EXPORT ClientIsReady) const

◆ bool() [4/4]

game_export_t::bool ( EXPORT RunFrame)

◆ ClientGetName()

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

Referenced by GetGameAPI().

◆ int() [1/3]

game_export_t::int ( EXPORT ClientAction) &

◆ int() [2/3]

game_export_t::int ( EXPORT ClientGetActiveTeam)

◆ int() [3/3]

game_export_t::int ( EXPORT ClientGetTeamNum) const &

◆ void() [1/11]

game_export_t::void ( EXPORT ClientCommand) &

◆ void() [2/11]

game_export_t::void ( EXPORT ClientDisconnect) &

◆ void() [3/11]

game_export_t::void ( EXPORT ClientEndRound) &

◆ void() [4/11]

game_export_t::void ( EXPORT ClientInitActorStates) const &

◆ void() [5/11]

game_export_t::void ( EXPORT ClientStartMatch) &

◆ void() [6/11]

game_export_t::void ( EXPORT ClientTeamInfo) const &

◆ 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

◆ 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

◆ void() [10/11]

game_export_t::void ( EXPORT Shutdown)

◆ 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.

Referenced by GetGameAPI(), and SV_InitGameProgs().

◆ 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.

Referenced by GetGameAPI().

◆ 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.

Referenced by G_Init(), and SV_LinkEdict().

◆ 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.

Referenced by G_Init().

◆ maxplayersperteam

int game_export_t::maxplayersperteam

Definition at line 367 of file game.h.

Referenced by G_Init().

◆ num_edicts

int game_export_t::num_edicts

current number, <= max_edicts

Definition at line 362 of file game.h.

Referenced by G_EdictsGetNewEdict(), G_EdictsGetNext(), G_EdictsGetNextActor(), G_EdictsGetNumber(), G_EdictsIsValidNum(), and G_Init().

◆ player_size

int game_export_t::player_size

Definition at line 366 of file game.h.

Referenced by GetGameAPI().

◆ players

player_t* game_export_t::players

Definition at line 365 of file game.h.

Referenced by G_Init().

◆ userinfo [1/2]

char* game_export_t::userinfo

Definition at line 329 of file game.h.

◆ userinfo [2/2]

const char* game_export_t::userinfo

Definition at line 332 of file game.h.

◆ userinfoSize

char size_t game_export_t::userinfoSize

Definition at line 329 of file game.h.


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