2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-01-25 09:23:03 +00:00

feat: show zone and asset statistics in modman

This commit is contained in:
Jan Laupetin
2025-10-21 23:44:59 +01:00
parent 2bfa4112fb
commit c9e6a1fc64
20 changed files with 261 additions and 25 deletions

View File

@@ -2,11 +2,12 @@
#include "ZoneRegistry.h"
Zone::Zone(std::string name, const zone_priority_t priority, GameId gameId)
Zone::Zone(std::string name, const zone_priority_t priority, const GameId gameId, const GamePlatform platform)
: m_name(std::move(name)),
m_priority(priority),
m_language(GameLanguage::LANGUAGE_NONE),
m_game_id(gameId),
m_platform(platform),
m_pools(ZoneAssetPools::CreateForGame(gameId, this, priority)),
m_memory(std::make_unique<ZoneMemory>()),
m_registered(false)

View File

@@ -15,7 +15,7 @@ class ZoneAssetPools;
class Zone
{
public:
Zone(std::string name, zone_priority_t priority, GameId gameId);
Zone(std::string name, zone_priority_t priority, GameId gameId, GamePlatform platform);
~Zone();
Zone(const Zone& other) = delete;
Zone(Zone&& other) noexcept = default;
@@ -30,6 +30,7 @@ public:
zone_priority_t m_priority;
GameLanguage m_language;
GameId m_game_id;
GamePlatform m_platform;
ZoneScriptStrings m_script_strings;
std::unique_ptr<ZoneAssetPools> m_pools;