Shipwright/libultraship/libultraship/Cutscene.cpp
2022-06-16 20:35:52 -04:00

20 lines
417 B
C++

#include "Cutscene.h"
void Ship::CutsceneV0::ParseFileBinary(BinaryReader* reader, Resource* res)
{
Cutscene* cs = (Cutscene*)res;
ResourceFile::ParseFileBinary(reader, res);
uint32_t numEntries = reader->ReadUInt32();
cs->commands.reserve(numEntries);
for (uint32_t i = 0; i < numEntries; i++)
{
uint32_t data = reader->ReadUInt32();
uint16_t opcode = data >> 16;
cs->commands.push_back(data);
}
}