mirror of
https://github.com/isledecomp/isle.git
synced 2025-12-10 08:03:13 +00:00
Refactor geom library into geom and shape (#1263)
* Refactor `geom` library into `geom` and `util` * Rename to `shape`
This commit is contained in:
committed by
GitHub
parent
5b19d7953a
commit
1b99d75543
20
LEGO1/lego/sources/shape/legobox.cpp
Normal file
20
LEGO1/lego/sources/shape/legobox.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "legobox.h"
|
||||
|
||||
#include "decomp.h"
|
||||
#include "misc/legoutil.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(LegoBox, 0x18)
|
||||
|
||||
// FUNCTION: LEGO1 0x100d3740
|
||||
// FUNCTION: BETA10 0x1018f83c
|
||||
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