mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Implement LegoROI::Read and geom library (#627)
* Implement LegoROI::Read and geom library * Match * Match * Fixes * Fix
This commit is contained in:

committed by
GitHub

parent
ec1fcce08c
commit
f6e44b1c1b
19
LEGO1/lego/sources/geom/legobox.cpp
Normal file
19
LEGO1/lego/sources/geom/legobox.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "legobox.h"
|
||||
|
||||
#include "decomp.h"
|
||||
#include "misc/legoutil.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(LegoBox, 0x18)
|
||||
|
||||
// FUNCTION: LEGO1 0x100d3740
|
||||
LegoResult LegoBox::Read(LegoStorage* p_storage)
|
||||
{
|
||||
LegoResult result;
|
||||
if ((result = m_min.Read(p_storage)) != SUCCESS) {
|
||||
return result;
|
||||
}
|
||||
if ((result = m_max.Read(p_storage)) != SUCCESS) {
|
||||
return result;
|
||||
}
|
||||
return SUCCESS;
|
||||
}
|
Reference in New Issue
Block a user