void INS_InitCallbacks (void) { Cmd_TableAddList(installationCallbacks); cgi->Cvar_SetValue("mn_installation_count", INS_GetCount()); cgi->Cvar_Set("mn_installation_title", ""); cgi->Cvar_Set("mn_installation_type", ""); cgi->Cvar_Set("mn_installation_max", ""); }
/** * @sa cgi->UI_InitStartup */ void UP_InitStartup (void) { /* add commands and cvars */ Cmd_TableAddList(ufopediaCmds); mn_uppretext = cgi->Cvar_Get("mn_uppretext", "0", 0, "Show the pre-research text in the UFOpaedia"); mn_uppreavailable = cgi->Cvar_Get("mn_uppreavailable", "0", 0, "True if there is a pre-research text available"); cgi->Cvar_Set("mn_uprequirement", ""); cgi->Cvar_Set("mn_upmetadata", ""); }
void M_Init (void) { if (Cmd_Exists("music_change")) Cmd_RemoveCommand("music_change"); Cmd_TableAddList(musicCmds); Cmd_AddParamCompleteFunction("music_play", M_CompleteMusic); snd_music = Cvar_Get("snd_music", "PsymongN3", 0, "Background music track"); snd_music_volume = Cvar_Get("snd_music_volume", "128", CVAR_ARCHIVE, "Music volume - default is 128."); snd_music_volume->modified = true; snd_music_play = Cvar_Get ("snd_music_play", "1", CVAR_ARCHIVE, "Enable background music."); music.playing = snd_music_play->integer != 0; }
void BDEF_InitCallbacks (void) { Cmd_TableAddList(baseDefenseCmds); }
void E_InitCallbacks (void) { Cmd_TableAddList(employeeCmds); }