Isle
Loading...
Searching...
No Matches
mxvariable.h
Go to the documentation of this file.
1#ifndef MXVARIABLE_H
2#define MXVARIABLE_H
3
4#include "mxcore.h"
5#include "mxstring.h"
6
7// VTABLE: LEGO1 0x100d7498
8// VTABLE: BETA10 0x101bc038
9// SIZE 0x24
10
17public:
22
29 MxVariable(const char* p_key, const char* p_value)
30 {
31 m_key = p_key;
33 m_value = p_value;
34 }
35
41 MxVariable(const char* p_key)
42 {
43 m_key = p_key;
45 }
46
52 virtual MxString* GetValue() { return &m_value; } // vtable+0x00
53
59 virtual void SetValue(const char* p_value) { m_value = p_value; } // vtable+0x04
60
65 virtual void Destroy() { delete this; } // vtable+0x08
66
71 const MxString* GetKey() const { return &m_key; }
72
73protected:
77 MxString m_key; // 0x04
78
83};
84
85// SYNTHETIC: LEGO1 0x1003bf40
86// MxVariable::~MxVariable
87
88#endif // MXVARIABLE_H
Mindscape custom string class for managing dynamic C-strings within the game engine.
Definition: mxstring.h:14
void ToUpperCase()
Converts the string contents to uppercase in-place.
Definition: mxstring.cpp:90
[AI] Represents a key-value variable as used in the variable table for the LEGO Island engine.
Definition: mxvariable.h:16
MxVariable(const char *p_key)
[AI] Constructs a variable with the specified key and no value.
Definition: mxvariable.h:41
MxString m_key
[AI] The variable's key (name), always stored in uppercase.
Definition: mxvariable.h:77
virtual MxString * GetValue()
[AI] Retrieves a pointer to the variable's value.
Definition: mxvariable.h:52
const MxString * GetKey() const
[AI] Provides read-only access to the variable's key/name.
Definition: mxvariable.h:71
MxVariable(const char *p_key, const char *p_value)
[AI] Constructs a variable with the specified key and value.
Definition: mxvariable.h:29
virtual void SetValue(const char *p_value)
[AI] Sets the variable's value.
Definition: mxvariable.h:59
MxString m_value
[AI] The variable's value.
Definition: mxvariable.h:82
MxVariable()
[AI] Constructs an empty variable with no key or value.
Definition: mxvariable.h:21
virtual void Destroy()
[AI] Destroys the variable, deleting the object.
Definition: mxvariable.h:65