]> git.lizzy.rs Git - minetest.git/blobdiff - src/activeobject.h
Translated using Weblate (Malay)
[minetest.git] / src / activeobject.h
index 85e160d100b7ef104dad3e0822ba59e7a2c3e55a..1d8a3712b6009c4ccf728fcc553188d72809de63 100644 (file)
@@ -28,11 +28,11 @@ enum ActiveObjectType {
        ACTIVEOBJECT_TYPE_INVALID = 0,
        ACTIVEOBJECT_TYPE_TEST = 1,
 // Obsolete stuff
-       ACTIVEOBJECT_TYPE_ITEM = 2,
-//     ACTIVEOBJECT_TYPE_RAT = 3,
-//     ACTIVEOBJECT_TYPE_OERKKI1 = 4,
-//     ACTIVEOBJECT_TYPE_FIREFLY = 5,
-       ACTIVEOBJECT_TYPE_MOBV2 = 6,
+// ACTIVEOBJECT_TYPE_ITEM = 2,
+// ACTIVEOBJECT_TYPE_RAT = 3,
+// ACTIVEOBJECT_TYPE_OERKKI1 = 4,
+// ACTIVEOBJECT_TYPE_FIREFLY = 5,
+// ACTIVEOBJECT_TYPE_MOBV2 = 6,
 // End obsolete stuff
        ACTIVEOBJECT_TYPE_LUAENTITY = 7,
 // Special type, not stored as a static object
@@ -120,9 +120,9 @@ class ActiveObject
 
 
        virtual void setAttachment(int parent_id, const std::string &bone, v3f position,
-                       v3f rotation) {}
+                       v3f rotation, bool force_visible) {}
        virtual void getAttachment(int *parent_id, std::string *bone, v3f *position,
-                       v3f *rotation) const {}
+                       v3f *rotation, bool *force_visible) const {}
        virtual void clearChildAttachments() {}
        virtual void clearParentAttachment() {}
        virtual void addAttachmentChild(int child_id) {}