Xonotic
campaign_common.qh File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CAMPAIGN_MAX_ENTRIES   64
 

Functions

float CampaignFile_Load (float offset, float entries)
 
void CampaignFile_Unload ()
 
void CampaignSetup (int n)
 

Variables

float campaign_bots [CAMPAIGN_MAX_ENTRIES]
 
float campaign_botskill [CAMPAIGN_MAX_ENTRIES]
 
int campaign_entries
 
string campaign_fraglimit [CAMPAIGN_MAX_ENTRIES]
 
string campaign_gametype [CAMPAIGN_MAX_ENTRIES]
 
string campaign_longdesc [CAMPAIGN_MAX_ENTRIES]
 
string campaign_mapname [CAMPAIGN_MAX_ENTRIES]
 
string campaign_mutators [CAMPAIGN_MAX_ENTRIES]
 
string campaign_name
 
int campaign_offset
 
string campaign_shortdesc [CAMPAIGN_MAX_ENTRIES]
 
string campaign_timelimit [CAMPAIGN_MAX_ENTRIES]
 
string campaign_title
 

Macro Definition Documentation

◆ CAMPAIGN_MAX_ENTRIES

#define CAMPAIGN_MAX_ENTRIES   64

Definition at line 4 of file campaign_common.qh.

Referenced by CampaignFile_Load(), and XonoticCampaignList_loadCvars().

Function Documentation

◆ CampaignFile_Load()

float CampaignFile_Load ( float  offset,
float  entries 
)

Referenced by CampaignLevelWarp(), CampaignPreInit(), and XonoticCampaignList_loadCvars().

+ Here is the caller graph for this function:

◆ CampaignFile_Unload()

void CampaignFile_Unload ( )

Definition at line 86 of file campaign_file.qc.

References campaign_entries, campaign_fraglimit, campaign_gametype, campaign_longdesc, campaign_mapname, campaign_mutators, campaign_shortdesc, campaign_timelimit, campaign_title, and strfree.

Referenced by CampaignLevelWarp(), CampaignPostIntermission(), CampaignPreInit(), and XonoticCampaignList_loadCvars().

87 {
88  if(campaign_title)
89  {
91  for(int i = 0; i < campaign_entries; ++i)
92  {
100  }
101  campaign_entries = 0;
102  }
103 }
string campaign_shortdesc[CAMPAIGN_MAX_ENTRIES]
string campaign_timelimit[CAMPAIGN_MAX_ENTRIES]
string campaign_mutators[CAMPAIGN_MAX_ENTRIES]
string campaign_title
int campaign_entries
string campaign_gametype[CAMPAIGN_MAX_ENTRIES]
string campaign_longdesc[CAMPAIGN_MAX_ENTRIES]
#define strfree(this)
Definition: string.qh:56
string campaign_mapname[CAMPAIGN_MAX_ENTRIES]
string campaign_fraglimit[CAMPAIGN_MAX_ENTRIES]
+ Here is the caller graph for this function:

◆ CampaignSetup()

void CampaignSetup ( int  n)

Definition at line 10 of file campaign_setup.qc.

References campaign_mapname, campaign_name, campaign_offset, ftos(), localcmd, and MapInfo_LoadMap().

Referenced by CampaignLevelWarp(), CampaignList_LoadMap(), and CampaignPostIntermission().

11 {
12  localcmd("set g_campaign 1\n");
13  localcmd("set _campaign_name \"");
15  localcmd("\"\n");
16  localcmd("set _campaign_index ");
18  localcmd("\n");
19  localcmd("disconnect\nmaxplayers 16\n");
21 }
string campaign_name
int campaign_offset
string campaign_mapname[CAMPAIGN_MAX_ENTRIES]
void MapInfo_LoadMap(string s, float reinit)
Definition: mapinfo.qc:1183
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ campaign_bots

float campaign_bots[CAMPAIGN_MAX_ENTRIES]

Definition at line 12 of file campaign_common.qh.

Referenced by CampaignFile_Load(), and CampaignPreInit().

◆ campaign_botskill

float campaign_botskill[CAMPAIGN_MAX_ENTRIES]

Definition at line 13 of file campaign_common.qh.

Referenced by CampaignFile_Load(), and CampaignPreInit().

◆ campaign_entries

◆ campaign_fraglimit

string campaign_fraglimit[CAMPAIGN_MAX_ENTRIES]

Definition at line 14 of file campaign_common.qh.

Referenced by CampaignFile_Load(), CampaignFile_Unload(), and CampaignPostInit().

◆ campaign_gametype

◆ campaign_longdesc

◆ campaign_mapname

◆ campaign_mutators

string campaign_mutators[CAMPAIGN_MAX_ENTRIES]

Definition at line 16 of file campaign_common.qh.

Referenced by CampaignFile_Load(), CampaignFile_Unload(), and CampaignPreInit().

◆ campaign_name

◆ campaign_offset

int campaign_offset

Definition at line 9 of file campaign_common.qh.

Referenced by CampaignFile_Load(), and CampaignSetup().

◆ campaign_shortdesc

◆ campaign_timelimit

string campaign_timelimit[CAMPAIGN_MAX_ENTRIES]

Definition at line 15 of file campaign_common.qh.

Referenced by CampaignFile_Load(), CampaignFile_Unload(), and CampaignPostInit().

◆ campaign_title

string campaign_title