mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add reasons to on_dieplayer and on_hpchange
This commit is contained in:
parent
2323842dd3
commit
dfc8198349
14 changed files with 219 additions and 52 deletions
|
@ -72,6 +72,7 @@ class IGameDef;
|
|||
class Environment;
|
||||
class GUIEngine;
|
||||
class ServerActiveObject;
|
||||
class PlayerHPChangeReason;
|
||||
|
||||
class ScriptApiBase {
|
||||
public:
|
||||
|
@ -139,6 +140,8 @@ protected:
|
|||
|
||||
void objectrefGetOrCreate(lua_State *L, ServerActiveObject *cobj);
|
||||
|
||||
void pushPlayerHPChangeReason(lua_State *L, const PlayerHPChangeReason& reason);
|
||||
|
||||
std::recursive_mutex m_luastackmutex;
|
||||
std::string m_last_run_mod;
|
||||
bool m_secure = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue