isle/LEGO1/lego/sources/geom/legosphere.cpp
2024-03-05 11:51:53 -05:00

17 lines
349 B
C++

#include "legosphere.h"
#include "misc/legostorage.h"
// 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;
}