iw4x-client/src/Components/Modules/Maps.hpp

36 lines
981 B
C++
Raw Normal View History

2015-12-25 20:51:58 -05:00
namespace Components
{
class Maps : public Component
{
public:
Maps();
2016-08-15 10:40:30 -04:00
~Maps();
2016-09-16 05:04:28 -04:00
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
2015-12-25 20:51:58 -05:00
const char* GetName() { return "Maps"; };
2016-08-15 10:40:30 -04:00
#endif
2015-12-25 20:51:58 -05:00
2015-12-26 08:27:34 -05:00
static void AddDependency(std::string expression, std::string zone);
2015-12-25 20:51:58 -05:00
private:
2015-12-26 08:27:34 -05:00
static std::vector<Game::XAssetEntry> EntryPool;
static std::map<std::string, std::string> DependencyList;
static std::vector<std::string> CurrentDependencies;
2015-12-25 20:51:58 -05:00
static void GetBSPName(char* buffer, size_t size, const char* format, const char* mapname);
static void LoadAssetRestrict(Game::XAssetType type, Game::XAssetHeader asset, std::string name, bool* restrict);
2015-12-26 08:27:34 -05:00
static void LoadMapZones(Game::XZoneInfo *zoneInfo, unsigned int zoneCount, int sync);
2016-06-13 12:09:02 -04:00
static void OverrideMapEnts(Game::MapEnts* ents);
2016-09-19 15:16:26 -04:00
static int IgnoreEntityStub(const char* entity);
2016-09-18 14:52:32 -04:00
#if defined(DEBUG) && defined(ENABLE_DXSDK)
static void ExportMap(Game::GfxWorld* world);
#endif
2015-12-26 08:27:34 -05:00
void ReallocateEntryPool();
2015-12-25 20:51:58 -05:00
};
}