]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/common/mapinfo.qh
start of mapinfo system; beware: menu-div0test now starts up longer for the first...
[divverent/nexuiz.git] / data / qcsrc / common / mapinfo.qh
1 float MAPINFO_TYPE_DEATHMATCH           = 1;
2 float MAPINFO_TYPE_TEAM_DEATHMATCH      = 2;
3 float MAPINFO_TYPE_DOMINATION           = 4;
4 float MAPINFO_TYPE_CTF                          = 8;
5 float MAPINFO_TYPE_RUNEMATCH            = 16;
6 float MAPINFO_TYPE_LMS                          = 32;
7 float MAPINFO_TYPE_ARENA                        = 64;
8 float MAPINFO_TYPE_KEYHUNT                      = 128;
9 float MAPINFO_TYPE_ASSAULT                      = 256;
10 float MAPINFO_TYPE_ONSLAUGHT            = 512;
11 float MAPINFO_TYPE_ALL              = 65535; // this has to include all above bits
12
13 float MapInfo_count;
14
15 // info about a map that MapInfo loads
16 string MapInfo_Map_title;
17 string MapInfo_Map_description;
18 float MapInfo_Map_supportedGametypes;
19
20 // load MapInfo_count; generate mapinfo for maps that miss them, and clear the
21 // cache; you need to call MapInfo_FilterGametype afterwards!
22 void MapInfo_Enumerate();
23
24 // filter the info by game type mask (updates MapInfo_count)
25 float MapInfo_FilterGametype(float gametype); // 1 on success, 0 on temporary failure (call it again next frame then)
26
27 // load info about the i-th map into the MapInfo_Map_* globals
28 float MapInfo_Get_ByID(float i); // 1 on success, 0 on failure
29
30 // load info about a map by name into the MapInfo_Map_* globals
31 float MapInfo_Get_ByName(string s, float allowGenerate); // 1 on success, 0 on failure, 2 if it autogenerated a mapinfo file