mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
[CSM] Add event on_place_node API lua (#5548)
* [CSM] Add event on_place_node API lua
This commit is contained in:
parent
ecf08255b0
commit
dc5bc6cac7
12 changed files with 88 additions and 37 deletions
|
@ -88,6 +88,8 @@ void push_tool_capabilities (lua_State *L,
|
|||
|
||||
void read_item_definition (lua_State *L, int index, const ItemDefinition &default_def,
|
||||
ItemDefinition &def);
|
||||
void push_item_definition (lua_State *L,
|
||||
const ItemDefinition &i);
|
||||
void read_object_properties (lua_State *L, int index,
|
||||
ObjectProperties *prop,
|
||||
IItemDefManager *idef);
|
||||
|
@ -162,6 +164,10 @@ bool push_json_value (lua_State *L,
|
|||
void read_json_value (lua_State *L, Json::Value &root,
|
||||
int index, u8 recursion = 0);
|
||||
|
||||
void push_pointed_thing (lua_State *L, const PointedThing &pointed);
|
||||
|
||||
void push_objectRef (lua_State *L, const u16 id);
|
||||
|
||||
extern struct EnumString es_TileAnimationType[];
|
||||
|
||||
#endif /* C_CONTENT_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue