Implement LegoROI::Read and geom library (#627)

* Implement LegoROI::Read and geom library

* Match

* Match

* Fixes

* Fix
This commit is contained in:
Christian Semmler
2024-03-05 12:38:53 -05:00
committed by GitHub
parent ec1fcce08c
commit f6e44b1c1b
12 changed files with 451 additions and 28 deletions

View File

@@ -0,0 +1,19 @@
#include "legosphere.h"
#include "decomp.h"
#include "misc/legostorage.h"
DECOMP_SIZE_ASSERT(LegoSphere, 0x10)
// FUNCTION: LEGO1 0x100d3770
LegoResult LegoSphere::Read(LegoStorage* p_storage)
{
LegoResult result;
if ((result = m_center.Read(p_storage)) != SUCCESS) {
return result;
}
if ((result = p_storage->Read(&m_radius, sizeof(m_radius))) != SUCCESS) {
return result;
}
return SUCCESS;
}