Isle
Loading...
Searching...
No Matches
legocolor.cpp
Go to the documentation of this file.
1#include "legocolor.h"
2
3#include "decomp.h"
4#include "misc/legostorage.h"
5
7
8// FUNCTION: LEGO1 0x100d3a20
10{
11 LegoResult result;
12 if ((result = p_storage->Read(&m_red, sizeof(m_red))) != SUCCESS) {
13 return result;
14 }
15 if ((result = p_storage->Read(&m_green, sizeof(m_green))) != SUCCESS) {
16 return result;
17 }
18 if ((result = p_storage->Read(&m_blue, sizeof(m_blue))) != SUCCESS) {
19 return result;
20 }
21 return SUCCESS;
22}
LEGO color representation with 8-bit RGB channels.
Definition: legocolor.h:10
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