1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add chat message callback and send functions

This commit is contained in:
Perttu Ahola 2011-11-27 19:39:36 +02:00
parent ab3911ba9e
commit 05df2ee8a4
5 changed files with 98 additions and 1 deletions

View file

@ -37,6 +37,10 @@ void scriptapi_add_environment(lua_State *L, ServerEnvironment *env);
void scriptapi_add_object_reference(lua_State *L, ServerActiveObject *cobj);
void scriptapi_rm_object_reference(lua_State *L, ServerActiveObject *cobj);
// Returns true if script handled message
bool scriptapi_on_chat_message(lua_State *L, const std::string &name,
const std::string &message);
/* environment */
// On environment step
void scriptapi_environment_step(lua_State *L, float dtime);