[Quest API] Add Entity Variable Methods to Perl/Lua. (#2609)

* [Quest API] Add Entity Variable Methods to Perl/Lua.

# Perl
- Add `$mob->ClearEntityVariables()`.
- Add `$mob->DeleteEntityVariable(variable_name)`.
- Add `$object->ClearEntityVariables()`.
- Add `$object->DeleteEntityVariable(variable_name)`.

# Lua
- Add `mob:ClearEntityVariables()`.
- Add `mob:DeleteEntityVariable(variable_name)`.
- Add `object:ClearEntityVariables()`.
- Add `object:DeleteEntityVariable(variable_name)`.

# Notes
- Allows operators to clear all entity variables or delete one by name, previously you just had to set to an empty value to clear after being set.

* Cleanup.
This commit is contained in:
Alex King
2022-12-04 12:18:27 -05:00
committed by GitHub
parent 5d5c2a4194
commit 7abc084cd1
10 changed files with 126 additions and 4 deletions
+2
View File
@@ -301,6 +301,8 @@ public:
bool SetAA(int rank_id, int new_value, int charges);
bool DivineAura();
void SetOOCRegen(int64 new_ooc_regen);
bool ClearEntityVariables();
bool DeleteEntityVariable(std::string variable_name);
std::string GetEntityVariable(std::string variable_name);
luabind::object GetEntityVariables(lua_State* L);
void SetEntityVariable(std::string variable_name, std::string variable_value);