Nuclide
Software Development Kit for id Tech
gamelibrary.h File Reference

Go to the source code of this file.

Classes

struct  gameEntry_t
 Data holding Game Library entries. More...
 

Enumerations

enum  gameInfo_t {
  GAMEINFO_TITLE , GAMEINFO_GAMEDIR , GAMEINFO_FALLBACKDIR , GAMEINFO_BASEDIR ,
  GAMEINFO_WEBSITE , GAMEINFO_VERSION , GAMEINFO_SIZE , GAMEINFO_TYPE ,
  GAMEINFO_NOPLAYERMODELS , GAMEINFO_NOSPRAYS , GAMEINFO_STARTMAP , GAMEINFO_TRAININGMAP ,
  GAMEINFO_MINVERSION , GAMEINFO_CHATROOM , GAMEINFO_READMEFILE , GAMEINFO_INTROVIDEO ,
  GAMEINFO_MENUMAP , GAMEINFO_AUTHOR , GAMEINFO_AUTHORSITE , GAMEINFO_PACKAGELIST ,
  GAMEINFO_INSTALLED
}
 Options for querying Game Library entry information using GameLibrary_GetInfo() More...
 
enum  gi_type {
  GAMEINFO_NONE , GAMEINFO_MANIFEST , GAMEINFO_GITXT , GAMEINFO_LIBLIST ,
  GAMEINFO_PACKAGE
}
 

Functions

void GameLibrary_Init (void)
 Called when initializing the current game. More...
 
void GameLibrary_InitCustom (void)
 Called when you want to initialize custom games/mods. More...
 
void GameLibrary_Install (int)
 Install the specified game. More...
 
void GameLibrary_Activate (int)
 Activate the specified game. More...
 
void GameLibrary_Deactivate (void)
 Deactivate the currently running mod. More...
 
bool GameLibrary_IsInstalling (void)
 Returns true/false depending on if a Game installation is in progress. More...
 
float GameLibrary_InstallProgress (void)
 Returns a 0-100% value of game install progress, tracking across multiple packages. More...
 
int GameLibrary_GetGameCount (void)
 Returns the total amount of games currently available. More...
 
int GameLibrary_GetCurrentGame (void)
 Return the ID for the currently active game. More...
 
__variant GameLibrary_GetGameInfo (int, gameInfo_t)
 Retrieves fields for a given game. More...
 
__variant GameLibrary_GetInfo (gameInfo_t)
 Retrieves fields for the currently running game. More...
 
void GameLibrary_DebugList (void)
 Prints debug info about the currently cached games to the console. More...