17 for (
MxS32 i = 0; str[i]; i++) {
31 if (cursor.
Find(var)) {
47 if (cursor.
Find(p_var)) {
60 const char* value =
"";
[AI] Non-intrusive search-and-edit cursor for navigating, querying, or deleting a specific entry in a...
MxBool Find(T p_obj)
[AI] Finds and focuses the cursor on the first node matching the given object by hash and value; supp...
void DeleteMatch()
[AI] If the cursor points to a match, removes it from table and destroys the node.
MxBool Current(T &p_obj)
[AI] Retrieves the object at the current match position, if valid.
void Add(T)
[AI] Inserts a new item into the hash table, possibly resizing if automatic resize is enabled and loa...
char * GetData() const
Returns a pointer to the internal character buffer.
MxS8 Compare(const MxString &p_str) const
Performs lexicographical comparison to another string.
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.
void SetVariable(const char *p_key, const char *p_value)
Sets a variable by key and value, replacing or updating if it exists.
[AI] Represents a key-value variable as used in the variable table for the LEGO Island engine.
virtual MxString * GetValue()
[AI] Retrieves a pointer to the variable's value.
const MxString * GetKey() const
[AI] Provides read-only access to the variable's key/name.
virtual void SetValue(const char *p_value)
[AI] Sets the variable's value.