1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Add reasons to on_dieplayer and on_hpchange

This commit is contained in:
Andrew Ward
2018-03-28 16:05:18 +01:00
committed by GitHub
parent 2323842dd3
commit dfc8198349
14 changed files with 219 additions and 52 deletions

View File

@@ -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);