]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/model/particles.hxx
Add writeLocalData functions for internal scenegraph classes
[simgear.git] / simgear / scene / model / particles.hxx
index 4c9d5053f63bd55038ad14f57ffe0056612aea47..b01b190a4bc52cb9a51a46196b9aa8ec98b755c5 100644 (file)
@@ -86,10 +86,22 @@ public:
         return wind;
     }
 
+    static void setSwitch(const SGPropertyNode* n)
+    {
+        enabledNode = n;
+    }
+
+    static bool getEnabled()
+    {
+        return enabled;
+    }
+
 private:
     static osg::Vec3 gravity;
     static osg::Vec3 wind;
     const SGPropertyNode* modelRoot;
+    static SGConstPropertyNode_ptr enabledNode;
+    static bool enabled;
 };