2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 14:31:20 +00:00
metaforce/Runtime/Character/CCharacterSet.cpp
Phillip Stephens dad7249927
RE COutput/InputStream and friends and migrate over
This branch is probably still horribly broken, but it's a good first step to migrating away from having hecl embedded in the runtime
2022-02-21 08:01:05 -08:00

14 lines
317 B
C++

#include "Runtime/Character/CCharacterSet.hpp"
namespace metaforce {
CCharacterSet::CCharacterSet(CInputStream& in) : x0_version(in.ReadShort()) {
u32 charCount = in.ReadLong();
for (u32 i = 0; i < charCount; ++i) {
u32 id = in.ReadLong();
x4_characters.emplace(id, in);
}
}
} // namespace metaforce