]> git.lizzy.rs Git - minetest.git/blobdiff - src/serverobject.h
Framework for the attachment system, new object property which allows changing the...
[minetest.git] / src / serverobject.h
index 6acd0dfeea9c753176efe0c9027df38a577ae6b6..3dcb99552a5a8aeeacff1535a6daf46fa9199237 100644 (file)
@@ -62,7 +62,7 @@ class ServerActiveObject : public ActiveObject
        { return getType(); }
 
        // Called after id has been set and has been inserted in environment
-       virtual void addedToEnvironment(){};
+       virtual void addedToEnvironment(u32 dtime_s){};
        // Called before removing from environment
        virtual void removingFromEnvironment(){};
        // Returns true if object's deletion is the job of the
@@ -152,6 +152,12 @@ class ServerActiveObject : public ActiveObject
 
        virtual void setArmorGroups(const ItemGroupList &armor_groups)
        {}
+       virtual void setAnimations(v2f frames, float frame_speed, float frame_blend)
+       {}
+       virtual void setBonePosRot(std::string bone, v3f position, v3f rotation)
+       {}
+       virtual void setAttachment(ServerActiveObject *parent, std::string bone, v3f position, v3f rotation)
+       {}
        virtual ObjectProperties* accessObjectProperties()
        { return NULL; }
        virtual void notifyObjectPropertiesModified()