ZoneLoading: Extract all obj dumping relevant parts to ObjWriting component

This commit is contained in:
Jan
2019-12-25 14:07:24 +01:00
parent e8de3a3f39
commit 00b3322cb2
28 changed files with 143 additions and 37 deletions

View File

@ -0,0 +1,13 @@
#include "AssetDumperRawFile.h"
using namespace T6;
std::string AssetDumperRawFile::GetFileNameForAsset(Zone* zone, RawFile* asset)
{
return std::string(asset->name);
}
void AssetDumperRawFile::DumpAsset(Zone* zone, RawFile* asset, FileAPI::File* out)
{
out->Write(asset->buffer, 1, asset->len);
}