summaryrefslogtreecommitdiff
path: root/src/scriptapi.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-02 12:43:57 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-02 12:43:57 +0200
commitb9e8e20c9cb87e441b3998b42f8d7f31c71f8a3f (patch)
tree9ff91e7afb0a90feb0c5380eee75dbfb51610b40 /src/scriptapi.h
parent932988af4650cdd844669d4cd238907409413db6 (diff)
downloadminetest-b9e8e20c9cb87e441b3998b42f8d7f31c71f8a3f.tar.gz
minetest-b9e8e20c9cb87e441b3998b42f8d7f31c71f8a3f.tar.bz2
minetest-b9e8e20c9cb87e441b3998b42f8d7f31c71f8a3f.zip
Script-defined creative inventory
Diffstat (limited to 'src/scriptapi.h')
-rw-r--r--src/scriptapi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scriptapi.h b/src/scriptapi.h
index 2baf6f836..33b795415 100644
--- a/src/scriptapi.h
+++ b/src/scriptapi.h
@@ -31,6 +31,7 @@ typedef struct lua_State lua_State;
struct LuaEntityProperties;
struct PointedThing;
//class IGameDef;
+class ServerRemotePlayer;
void scriptapi_export(lua_State *L, Server *server);
void scriptapi_add_environment(lua_State *L, ServerEnvironment *env);
@@ -60,6 +61,7 @@ void scriptapi_environment_on_generated(lua_State *L, v3s16 minp, v3s16 maxp);
/* misc */
void scriptapi_on_newplayer(lua_State *L, ServerActiveObject *player);
bool scriptapi_on_respawnplayer(lua_State *L, ServerActiveObject *player);
+void scriptapi_get_creative_inventory(lua_State *L, ServerRemotePlayer *player);
/* craftitem */
void scriptapi_add_craftitem(lua_State *L, const char *name);