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

Go to the source code of this file.

Classes

struct  savegame_t
 

Enumerations

enum  saveInfo_t { SAVEINFO_NAME , SAVEINFO_PREVIEW }
 Options querying Map Library entries using MapLibrary_GetInfo(). More...
 

Functions

int Saves_GetSaveCount (void)
 Returns the total amount of savegames available. More...
 
__variant Saves_GetInfo (int, saveInfo_t)
 Retrieve information about a given saveID. More...
 
void Saves_Init (void)
 

Variables

var savegame_tg_savegames
 
var int g_savegame_count
 

Enumeration Type Documentation

◆ saveInfo_t

enum saveInfo_t

Options querying Map Library entries using MapLibrary_GetInfo().

Enumerator
SAVEINFO_NAME 

(string) Name of the save.

E.g. quick

SAVEINFO_PREVIEW 

(string) URL to a preview of the save.

NULL if not available.

Function Documentation

◆ Saves_GetInfo()

__variant Saves_GetInfo ( int  saveID,
saveInfo_t  saveInfo 
)

Retrieve information about a given saveID.

See saveInfo_t for which fields you can query.

◆ Saves_GetSaveCount()

int Saves_GetSaveCount ( void  )

Returns the total amount of savegames available.

◆ Saves_Init()

void Saves_Init ( void  )

Variable Documentation

◆ g_savegame_count

var int g_savegame_count

◆ g_savegames

var savegame_t* g_savegames