mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 11:48:37 +00:00
[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:
@@ -60,6 +60,8 @@ public:
|
||||
void Delete(bool reset_state);
|
||||
bool IsGroundSpawn();
|
||||
void Close();
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user