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
|
@ -53,6 +53,7 @@ class Inventory;
|
|||
class ModChannelMgr;
|
||||
class RemotePlayer;
|
||||
class PlayerSAO;
|
||||
struct PlayerHPChangeReason;
|
||||
class IRollbackManager;
|
||||
struct RollbackAction;
|
||||
class EmergeManager;
|
||||
|
@ -328,7 +329,7 @@ public:
|
|||
|
||||
void printToConsoleOnly(const std::string &text);
|
||||
|
||||
void SendPlayerHPOrDie(PlayerSAO *player);
|
||||
void SendPlayerHPOrDie(PlayerSAO *player, const PlayerHPChangeReason &reason);
|
||||
void SendPlayerBreath(PlayerSAO *sao);
|
||||
void SendInventory(PlayerSAO* playerSAO);
|
||||
void SendMovePlayer(session_t peer_id);
|
||||
|
@ -451,7 +452,7 @@ private:
|
|||
Something random
|
||||
*/
|
||||
|
||||
void DiePlayer(session_t peer_id);
|
||||
void DiePlayer(session_t peer_id, const PlayerHPChangeReason &reason);
|
||||
void RespawnPlayer(session_t peer_id);
|
||||
void DeleteClient(session_t peer_id, ClientDeletionReason reason);
|
||||
void UpdateCrafting(RemotePlayer *player);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue