2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-30 08:17:48 +00:00
Files
OpenAssetTools/src/ObjLoading/Game/IW5/AssetLoaders/AssetLoaderXAnim.cpp

18 lines
410 B
C++

#include "AssetLoaderXAnim.h"
#include "Game/IW5/IW5.h"
#include "ObjLoading.h"
#include "Pool/GlobalAssetPool.h"
#include <cstring>
using namespace IW5;
void* AssetLoaderXAnim::CreateEmptyAsset(const std::string& assetName, MemoryManager* memory)
{
auto* anim = memory->Create<XAnimParts>();
memset(anim, 0, sizeof(XAnimParts));
anim->name = memory->Dup(assetName.c_str());
return anim;
}