mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
18 lines
444 B
C++
18 lines
444 B
C++
#include "AssetLoaderGlassWorld.h"
|
|
|
|
#include "Game/IW5/IW5.h"
|
|
#include "ObjLoading.h"
|
|
#include "Pool/GlobalAssetPool.h"
|
|
|
|
#include <cstring>
|
|
|
|
using namespace IW5;
|
|
|
|
void* AssetLoaderGlassWorld::CreateEmptyAsset(const std::string& assetName, MemoryManager* memory)
|
|
{
|
|
auto* glassWorld = memory->Create<GlassWorld>();
|
|
memset(glassWorld, 0, sizeof(GlassWorld));
|
|
glassWorld->name = memory->Dup(assetName.c_str());
|
|
return glassWorld;
|
|
}
|