OpenAssetTools/src/ObjLoading/Game/IW4/AssetLoaders/AssetLoaderFxImpactTable.cpp
2023-11-19 21:07:21 +00:00

18 lines
468 B
C++

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