lego1: MxVariableTable (#87)

* MxStringVariable -> MxVariable

* cursor test

* GetVariable to 100

* meh

* node insert inline

* move to header file

* use reference to match available code

* variable table init in mxomni, some reshuffling
This commit is contained in:
MS
2023-08-03 20:13:41 -04:00
committed by GitHub
parent b6ada8f46c
commit 71950cd40a
11 changed files with 385 additions and 65 deletions

20
LEGO1/mxvariable.cpp Normal file
View File

@@ -0,0 +1,20 @@
#include "mxvariable.h"
#include "mxstring.h"
// OFFSET: LEGO1 0x1003bea0
MxString *MxVariable::GetValue()
{
return &m_value;
}
// OFFSET: LEGO1 0x1003beb0
void MxVariable::SetValue(const char *value)
{
m_value = value;
}
// OFFSET: LEGO1 0x1003bec0
void MxVariable::Destroy()
{
delete this;
}