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:
|
|
|
|
static void* WorldMP;
|
|
|
|
static void* WorldSP;
|
|
|
|
|
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);
|
2015-12-26 08:27:34 -05:00
|
|
|
static bool LoadAssetRestrict(Game::XAssetType type, Game::XAssetHeader asset, const char* name);
|
|
|
|
static void LoadMapZones(Game::XZoneInfo *zoneInfo, unsigned int zoneCount, int sync);
|
|
|
|
|
|
|
|
void ReallocateEntryPool();
|
2015-12-25 20:51:58 -05:00
|
|
|
};
|
|
|
|
}
|