2023-08-03 20:13:41 -04:00
|
|
|
#ifndef MXVARIABLE_H
|
|
|
|
#define MXVARIABLE_H
|
|
|
|
|
|
|
|
#include "mxcore.h"
|
2023-10-24 19:38:27 -04:00
|
|
|
#include "mxstring.h"
|
2023-08-03 20:13:41 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d7498
|
2023-09-29 16:38:08 -04:00
|
|
|
// SIZE 0x24
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxVariable {
|
2023-08-03 20:13:41 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxVariable() {}
|
|
|
|
MxVariable(const char* p_key)
|
|
|
|
{
|
|
|
|
m_key = p_key;
|
|
|
|
m_key.ToUpperCase();
|
|
|
|
}
|
|
|
|
MxVariable(const char* p_key, const char* p_value)
|
|
|
|
{
|
|
|
|
m_key = p_key;
|
|
|
|
m_key.ToUpperCase();
|
|
|
|
m_value = p_value;
|
|
|
|
}
|
|
|
|
virtual MxString* GetValue();
|
2023-12-13 05:48:14 -05:00
|
|
|
virtual void SetValue(const char* p_value);
|
2023-10-24 19:38:27 -04:00
|
|
|
virtual void Destroy();
|
2023-08-03 20:13:41 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
inline const MxString* GetKey() const { return &m_key; }
|
2023-08-03 20:13:41 -04:00
|
|
|
|
|
|
|
protected:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxString m_key;
|
|
|
|
MxString m_value;
|
2023-08-03 20:13:41 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXVARIABLE_H
|