3 Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation; either version 2.1 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
30 #include "content_sao.h"
33 /*****************************************************************************/
34 /* Minetest interface */
35 /*****************************************************************************/
36 bool scriptapi_node_on_punch(lua_State *L, v3s16 p, MapNode node,
37 ServerActiveObject *puncher);
38 bool scriptapi_node_on_dig(lua_State *L, v3s16 p, MapNode node,
39 ServerActiveObject *digger);
40 void scriptapi_node_on_construct(lua_State *L, v3s16 p, MapNode node);
41 void scriptapi_node_on_destruct(lua_State *L, v3s16 p, MapNode node);
42 void scriptapi_node_after_destruct(lua_State *L, v3s16 p, MapNode node);
43 bool scriptapi_node_on_timer(lua_State *L, v3s16 p, MapNode node, f32 dtime);
44 void scriptapi_node_on_receive_fields(lua_State *L, v3s16 p,
45 const std::string &formname,
46 const std::map<std::string, std::string> &fields,
47 ServerActiveObject *sender);
49 extern struct EnumString es_DrawType[];
50 extern struct EnumString es_ContentParamType[];
51 extern struct EnumString es_ContentParamType2[];
52 extern struct EnumString es_LiquidType[];
53 extern struct EnumString es_NodeBoxType[];
55 #endif /* LUA_NODE_H_ */