mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-06-06 08:42:35 +00:00
Updated custom map objloading code to match new structure.
This commit is contained in:
@@ -53,10 +53,10 @@ namespace
|
|||||||
};
|
};
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
namespace T6
|
namespace custom_map
|
||||||
{
|
{
|
||||||
std::unique_ptr<AssetCreator<AssetGfxWorld>> CreateCustomMapLoader(MemoryManager& memory, ISearchPath& searchPath, Zone& zone)
|
std::unique_ptr<AssetCreator<AssetGfxWorld>> CreateLoaderT6(MemoryManager& memory, ISearchPath& searchPath, Zone& zone)
|
||||||
{
|
{
|
||||||
return std::make_unique<CustomMapLoader>(memory, searchPath, zone);
|
return std::make_unique<CustomMapLoader>(memory, searchPath, zone);
|
||||||
}
|
}
|
||||||
} // namespace T6
|
} // namespace custom_map
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace T6
|
namespace custom_map
|
||||||
{
|
{
|
||||||
std::unique_ptr<AssetCreator<AssetGfxWorld>> CreateCustomMapLoader(MemoryManager& memory, ISearchPath& searchPath, Zone& zone);
|
std::unique_ptr<AssetCreator<T6::AssetGfxWorld>> CreateLoaderT6(MemoryManager& memory, ISearchPath& searchPath, Zone& zone);
|
||||||
} // namespace T6
|
} // namespace custom_map
|
||||||
|
|||||||
@@ -48,6 +48,7 @@
|
|||||||
#include "Weapon/WeaponRawLoaderT6.h"
|
#include "Weapon/WeaponRawLoaderT6.h"
|
||||||
#include "ZBarrier/GdtLoaderZBarrierT6.h"
|
#include "ZBarrier/GdtLoaderZBarrierT6.h"
|
||||||
#include "ZBarrier/RawLoaderZBarrierT6.h"
|
#include "ZBarrier/RawLoaderZBarrierT6.h"
|
||||||
|
#include "CustomMap/LoaderCustomMapT6.h"
|
||||||
|
|
||||||
#include <format>
|
#include <format>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
@@ -445,8 +446,7 @@ namespace T6
|
|||||||
collection.AddSubAssetCreator(techset::CreateVertexShaderLoaderT6(memory, searchPath));
|
collection.AddSubAssetCreator(techset::CreateVertexShaderLoaderT6(memory, searchPath));
|
||||||
collection.AddSubAssetCreator(techset::CreatePixelShaderLoaderT6(memory, searchPath));
|
collection.AddSubAssetCreator(techset::CreatePixelShaderLoaderT6(memory, searchPath));
|
||||||
|
|
||||||
// The Custom Map Loader uses gfxworld as the starting asset
|
collection.AddAssetCreator(custom_map::CreateLoaderT6(memory, searchPath, zone));
|
||||||
collection.AddAssetCreator(CreateCustomMapLoader(memory, searchPath, zone));
|
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user