]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/common/campaign_common.qh
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@1912 f962a42d-fe04-0410-a3ab-8c8b0445ebaa
[divverent/nexuiz.git] / data / qcsrc / common / campaign_common.qh
1 #ifndef CAMPAIGN_MAX_ENTRIES
2 #define CAMPAIGN_MAX_ENTRIES 64
3 #endif
4
5 // each i-th array element corresponds to the list entry campaign_offset+i
6 float campaign_entries;
7 float campaign_offset;
8 string campaign_gametype[CAMPAIGN_MAX_ENTRIES];
9 string campaign_mapname[CAMPAIGN_MAX_ENTRIES];
10 float campaign_bots[CAMPAIGN_MAX_ENTRIES];
11 float campaign_botskill[CAMPAIGN_MAX_ENTRIES];
12 float campaign_fraglimit[CAMPAIGN_MAX_ENTRIES];
13 string campaign_mutators[CAMPAIGN_MAX_ENTRIES];
14 string campaign_shortdesc[CAMPAIGN_MAX_ENTRIES];
15 string campaign_longdesc[CAMPAIGN_MAX_ENTRIES];
16
17 // load the campaign file, but use the given offset and limit the number of
18 // entries being read. Returns the number of entries successfully read (this
19 // number is also stored in campaign_entries).
20 // NOTE: there MUST be a corresponding CampaignFile_Unload() to unzone the
21 // strings.
22 string campaign_name; // set that to the campaign you want to load before calling CampaignFile_Load
23 float CampaignFile_Load(float offset, float entries);
24 void CampaignFile_Unload();
25
26 // Sets up the campaign for the n-th array item (meaning: campaign_offset+nth
27 // level) using localcmd()
28 void CampaignSetup(float n);