2023-08-03 20:13:41 -04:00
|
|
|
#include "mxvariable.h"
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2023-09-29 16:38:08 -04:00
|
|
|
#include "decomp.h"
|
2023-10-24 19:38:27 -04:00
|
|
|
#include "mxstring.h"
|
2023-09-29 16:38:08 -04:00
|
|
|
|
|
|
|
DECOMP_SIZE_ASSERT(MxVariable, 0x24)
|
2023-08-03 20:13:41 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1003bea0
|
2023-10-24 19:38:27 -04:00
|
|
|
MxString* MxVariable::GetValue()
|
2023-08-03 20:13:41 -04:00
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
return &m_value;
|
2023-08-03 20:13:41 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1003beb0
|
2023-10-24 19:38:27 -04:00
|
|
|
void MxVariable::SetValue(const char* value)
|
2023-08-03 20:13:41 -04:00
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
m_value = value;
|
2023-08-03 20:13:41 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1003bec0
|
2023-08-03 20:13:41 -04:00
|
|
|
void MxVariable::Destroy()
|
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
delete this;
|
2023-08-03 20:13:41 -04:00
|
|
|
}
|