mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-14 21:45:16 -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: "???"
19 lines
443 B
C++
19 lines
443 B
C++
#include "PlayerAnimation.h"
|
|
#include "PR/ultra64/gbi.h"
|
|
|
|
namespace Ship
|
|
{
|
|
void PlayerAnimationV0::ParseFileBinary(BinaryReader* reader, Resource* res)
|
|
{
|
|
PlayerAnimation* anim = (PlayerAnimation*)res;
|
|
|
|
ResourceFile::ParseFileBinary(reader, res);
|
|
|
|
uint32_t numEntries = reader->ReadUInt32();
|
|
anim->limbRotData.reserve(numEntries);
|
|
|
|
for (uint32_t i = 0; i < numEntries; i++)
|
|
anim->limbRotData.push_back(reader->ReadInt16());
|
|
|
|
}
|
|
} |