X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmapinfo.qh;h=952274a73aaf0fe584a47cf2f2583478345abe8c;hb=ab8dd8fc78e429de5e587c927ffa21e1eaa672dd;hp=a7bf6ce0aab77fdcb4718c0f084998c30da9f517;hpb=82e5c474d4af81e54797d363adcf331548262144;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mapinfo.qh b/qcsrc/common/mapinfo.qh index a7bf6ce0a..952274a73 100644 --- a/qcsrc/common/mapinfo.qh +++ b/qcsrc/common/mapinfo.qh @@ -168,6 +168,11 @@ string MapInfo_BSPName_ByID(float i); // load info about a map by name into the MapInfo_Map_* globals int MapInfo_Get_ByName(string s, float allowGenerate, Gametype gametypeToSet); // 1 on success, 0 on failure, 2 if it autogenerated a mapinfo file +// load map-specific player limits +int map_minplayers; +int map_maxplayers; +bool MapReadSizes(string map); + // look for a map by a prefix, returns the actual map name on success, string_null on failure or ambigous match string MapInfo_FindName_match; // the name of the map that was found float MapInfo_FindName_firstResult; // -1 if none were found, index of first one if not unique but found (FindName then returns -1) @@ -186,7 +191,7 @@ string MapInfo_ListAllAllowedMaps(float pFlagsRequired, float pFlagsForbidden); // gets a gametype from a string string _MapInfo_GetDefaultEx(Gametype t); float _MapInfo_GetTeamPlayBool(Gametype t); -Gametype MapInfo_Type_FromString(string t, bool dowarn); +Gametype MapInfo_Type_FromString(string t, bool dowarn, bool is_q3compat); string MapInfo_Type_Description(Gametype t); string MapInfo_Type_ToString(Gametype t); string MapInfo_Type_ToText(Gametype t); @@ -200,6 +205,10 @@ void MapInfo_Cache_Destroy(); // disable caching void MapInfo_Cache_Create(); // enable caching void MapInfo_Cache_Invalidate(); // delete cache if any, but keep enabled +bool _MapInfo_ParseArena(string arena_filename, int fh, string pFilename, Gametype pGametypeToSet, bool isdefi, bool isgenerator); + +string _MapInfo_FindArenaFile(string pFilename, string extension); + void _MapInfo_Parse_Settemp(string pFilename, string acl, float type, string s, float recurse); void MapInfo_ClearTemps(); // call this when done with mapinfo for this frame