aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJDiaz <runspect@gmail.com>2021-01-11 18:03:31 +0100
committerGitHub <noreply@github.com>2021-01-11 18:03:31 +0100
commit08ee9794fbc0960a8aab1af21d34f40685809e75 (patch)
treeeb6acad972eca4793159c95519b4deb6e05c9448 /cmake
parentfcb3ed840a5e66e6d37b27effe30d8d723a7da59 (diff)
Implement on_rightclickplayer callback (#10775)
Co-authored-by: rubenwardy <rw@rubenwardy.com>
Diffstat (limited to 'cmake')
0 files changed, 0 insertions, 0 deletions
to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #pragma once #include "cpp_api/s_base.h" #include "irr_v3d.h" #include "util/string.h" struct ToolCapabilities; class ScriptApiPlayer : virtual public ScriptApiBase { public: virtual ~ScriptApiPlayer() = default; void on_newplayer(ServerActiveObject *player); void on_dieplayer(ServerActiveObject *player); bool on_respawnplayer(ServerActiveObject *player); bool on_prejoinplayer(const std::string &name, const std::string &ip, std::string *reason); bool can_bypass_userlimit(const std::string &name, const std::string &ip); void on_joinplayer(ServerActiveObject *player); void on_leaveplayer(ServerActiveObject *player, bool timeout); void on_cheat(ServerActiveObject *player, const std::string &cheat_type); bool on_punchplayer(ServerActiveObject *player, ServerActiveObject *hitter, float time_from_last_punch, const ToolCapabilities *toolcap, v3f dir, s16 damage); s16 on_player_hpchange(ServerActiveObject *player, s16 hp_change); void on_playerReceiveFields(ServerActiveObject *player, const std::string &formname, const StringMap &fields); void on_auth_failure(const std::string &name, const std::string &ip); };