Isle
Loading...
Searching...
No Matches
legosphere.cpp
Go to the documentation of this file.
1#include "legosphere.h"
2
3#include "decomp.h"
4#include "misc/legostorage.h"
5
7
8// FUNCTION: LEGO1 0x100d3770
10{
11 LegoResult result;
12 if ((result = m_center.Read(p_storage)) != SUCCESS) {
13 return result;
14 }
15 if ((result = p_storage->Read(&m_radius, sizeof(m_radius))) != SUCCESS) {
16 return result;
17 }
18 return SUCCESS;
19}
[AI] Represents a sphere in 3D space, used for bounding volume calculations and spatial queries.
Definition: legosphere.h:13
Abstract base class providing an interface for file-like storage with binary and text read/write oper...
Definition: legostorage.h:16
#define DECOMP_SIZE_ASSERT(T, S)
Definition: decomp.h:19
LegoS32 LegoResult
[AI] Function result type (return code): typically SUCCESS (0) or FAILURE (-1).
Definition: legotypes.h:101
#define SUCCESS
[AI] Used to indicate a successful operation in result codes.
Definition: legotypes.h:30