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

27 lines
771 B
C++
Raw Normal View History

2015-12-25 20:51:58 -05:00
namespace Components
{
class Maps : public Component
{
public:
Maps();
2015-12-26 08:27:34 -05:00
~Maps();
2015-12-25 20:51:58 -05:00
const char* GetName() { return "Maps"; };
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);
2015-12-26 08:27:34 -05:00
void ReallocateEntryPool();
2015-12-25 20:51:58 -05:00
};
}