]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/script/lua_api/l_object.h
Add formspec theming using prepended strings
[dragonfireclient.git] / src / script / lua_api / l_object.h
index a2438e4345ffe6ad51d857073acdd30bc242b738..58cfe7146c2b79222e2abbc8230642fffab9045c 100644 (file)
@@ -35,7 +35,7 @@ class ObjectRef : public ModApiBase {
 public:
        ObjectRef(ServerActiveObject *object);
 
-       ~ObjectRef();
+       ~ObjectRef() = default;
 
        // Creates an ObjectRef and leaves it on top of stack
        // Not callable from Lua; all references are created on the C side.
@@ -126,6 +126,9 @@ class ObjectRef : public ModApiBase {
        // set_animation(self, frame_range, frame_speed, frame_blend, frame_loop)
        static int l_set_animation(lua_State *L);
 
+       // set_animation_frame_speed(self, frame_speed)
+       static int l_set_animation_frame_speed(lua_State *L);
+
        // get_animation(self)
        static int l_get_animation(lua_State *L);
 
@@ -250,6 +253,12 @@ class ObjectRef : public ModApiBase {
        // get_inventory_formspec(self) -> formspec
        static int l_get_inventory_formspec(lua_State *L);
 
+       // set_formspec_prepend(self, formspec)
+       static int l_set_formspec_prepend(lua_State *L);
+
+       // get_formspec_prepend(self) -> formspec
+       static int l_get_formspec_prepend(lua_State *L);
+
        // get_player_control(self)
        static int l_get_player_control(lua_State *L);