diff --git a/src/Components/Modules/AssetInterfaces/IComWorld.cpp b/src/Components/Modules/AssetInterfaces/IComWorld.cpp index f3c21165..0c708372 100644 --- a/src/Components/Modules/AssetInterfaces/IComWorld.cpp +++ b/src/Components/Modules/AssetInterfaces/IComWorld.cpp @@ -2,6 +2,21 @@ namespace Assets { + void IComWorld::mark(Game::XAssetHeader header, Components::ZoneBuilder::Zone* builder) + { + Game::ComWorld* asset = header.comWorld; + if (asset->lights) + { + for (int i = 0; i < asset->lightCount; ++i) + { + if (asset->lights[i].name) + { + builder->loadAsset(Game::XAssetType::ASSET_TYPE_LIGHT_DEF, std::string(asset->lights[i].name), false); + } + } + } + } + void IComWorld::save(Game::XAssetHeader header, Components::ZoneBuilder::Zone* builder) { AssertSize(Game::ComWorld, 16); diff --git a/src/Components/Modules/AssetInterfaces/IComWorld.hpp b/src/Components/Modules/AssetInterfaces/IComWorld.hpp index 6497cb4e..b66b53b1 100644 --- a/src/Components/Modules/AssetInterfaces/IComWorld.hpp +++ b/src/Components/Modules/AssetInterfaces/IComWorld.hpp @@ -6,5 +6,6 @@ namespace Assets virtual Game::XAssetType getType() override { return Game::XAssetType::ASSET_TYPE_COMWORLD; }; virtual void save(Game::XAssetHeader header, Components::ZoneBuilder::Zone* builder) override; + virtual void mark(Game::XAssetHeader header, Components::ZoneBuilder::Zone* builder) override; }; }