mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-20 05:05:25 +00:00
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
This commit is contained in:
@@ -15,12 +15,12 @@ std::array<u16, 24> CMappableObject::skDoorIndices{
|
||||
};
|
||||
|
||||
CMappableObject::CMappableObject(const void* buf) {
|
||||
athena::io::MemoryReader r(buf, 64);
|
||||
x0_type = EMappableObjectType(r.readUint32Big());
|
||||
x4_visibilityMode = EVisMode(r.readUint32Big());
|
||||
x8_objId = r.readUint32Big();
|
||||
xc_ = r.readUint32Big();
|
||||
x10_transform.read34RowMajor(r);
|
||||
CMemoryInStream r(buf, 64);
|
||||
x0_type = EMappableObjectType(r.ReadLong());
|
||||
x4_visibilityMode = EVisMode(r.ReadLong());
|
||||
x8_objId = r.ReadLong();
|
||||
xc_ = r.ReadLong();
|
||||
x10_transform = r.Get<zeus::CTransform>();
|
||||
}
|
||||
|
||||
zeus::CTransform CMappableObject::AdjustTransformForType() const {
|
||||
|
||||
Reference in New Issue
Block a user