From 945d01fd9efe93e892a6a2be2467373e3c684300 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 26 Nov 2011 03:20:19 +0200 Subject: on_newplayer and on_respawnplayer callbacks --- src/scriptapi.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/scriptapi.h') diff --git a/src/scriptapi.h b/src/scriptapi.h index 33f090f74..08c835172 100644 --- a/src/scriptapi.h +++ b/src/scriptapi.h @@ -50,6 +50,10 @@ void scriptapi_environment_on_dignode(lua_State *L, v3s16 p, MapNode oldnode, void scriptapi_environment_on_punchnode(lua_State *L, v3s16 p, MapNode node, ServerActiveObject *puncher); +/* misc */ +void scriptapi_on_newplayer(lua_State *L, ServerActiveObject *player); +bool scriptapi_on_respawnplayer(lua_State *L, ServerActiveObject *player); + /* luaentity */ // Returns true if succesfully added into Lua; false otherwise. bool scriptapi_luaentity_add(lua_State *L, u16 id, const char *name, -- cgit v1.2.3