mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-13 13:05:06 -05:00
d24c8453db
subrepo: subdir: "libultraship" merged: "a484cda98" upstream: origin: "https://github.com/HarbourMasters/libultraship.git" branch: "main" commit: "a484cda98" git-subrepo: version: "0.4.1" origin: "???" commit: "???"
22 lines
433 B
C++
22 lines
433 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);
|
|
}
|
|
|
|
//int bp = 0;
|
|
}
|