XModel import tests

This commit is contained in:
momo5502
2016-06-09 01:26:33 +02:00
parent 276e35e2d2
commit 5a4ddb27d3
6 changed files with 216 additions and 14 deletions

View File

@ -24,6 +24,17 @@ namespace Utils
{
return reinterpret_cast<T*>(Read(sizeof(T), count));
}
template <typename T> T Read()
{
T obj;
for (unsigned int i = 0; i < sizeof(T); ++i)
{
reinterpret_cast<char*>(&obj)[i] = ReadByte();
}
return obj;
}
bool End();
void Seek(unsigned int position);