1#ifndef MXVARIABLETABLE_H
2#define MXVARIABLETABLE_H
33 void SetVariable(
const char* p_key,
const char* p_value);
void SetDestroy(void(*p_customDestructor)(T))
[AI] Assigns a custom destructor function to be used for elements of this collection.
[AI] Generic hash table collection implementing chained (bucketed) hashing, used for efficient lookup...
MxVariableTable is a specialized hash table for storing key/value string variables used by the LEGO I...
const char * GetVariable(const char *p_key)
Returns the value for the variable with a given key, or an empty string if not found.
MxS8 Compare(MxVariable *, MxVariable *) override
Implements the virtual table comparison for two MxVariable pointers.
MxU32 Hash(MxVariable *) override
Hashes the key of the given variable for use in the table.
static void Destroy(MxVariable *p_obj)
Destroys an instance of MxVariable, calling its Destroy method.
void SetVariable(const char *p_key, const char *p_value)
Sets a variable by key and value, replacing or updating if it exists.
MxVariableTable()
Constructs an MxVariableTable and sets up the element destroy function.
[AI] Represents a key-value variable as used in the variable table for the LEGO Island engine.
virtual void Destroy()
[AI] Destroys the variable, deleting the object.