]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_props.hxx
Roy Vegard Ovesen:
[flightgear.git] / src / Main / fg_props.hxx
index 703636a96a5b67453207a73dd5085023f12d7b52..8a53147c7395e18e9ffea06fcad40bab01de81bc 100644 (file)
@@ -9,6 +9,7 @@
 #include <simgear/debug/logstream.hxx>
 #include <simgear/props/props.hxx>
 #include <simgear/props/props_io.hxx>
+#include <simgear/structure/subsystem_mgr.hxx>
 
 #include "globals.hxx"
 
 // Property management.
 ////////////////////////////////////////////////////////////////////////
 
-
-/**
- * Initialize the default FlightGear properties.
- *
- * These are mostly properties that haven't been claimed by a
- * specific module yet.  This function should be invoked once,
- * while the program is starting (and after the global property
- * tree has been created).
- */
-extern void fgInitProps ();    // fixme: how are they untied?
-
-
-/**
- * Update the default FlightGear properties.
- *
- * This function should be invoked once in each loop to update all
- * of the default properties.
- */
-extern void fgUpdateProps ();
+class FGProperties : public SGSubsystem
+{
+public:
+    FGProperties ();
+    virtual ~FGProperties ();
+
+    void init ();
+    void bind ();
+    void unbind ();
+    void update (double dt);
+};
 
 
 /**