+
+class FGAIModelData : public simgear::SGModelData {
+public:
+ FGAIModelData(SGPropertyNode *root = 0);
+ ~FGAIModelData();
+
+ /** osg callback, thread-safe */
+ void modelLoaded(const string& path, SGPropertyNode *prop, osg::Node *n);
+
+ /** init hook to be called after model is loaded.
+ * Not thread-safe. Call from main thread only. */
+ void init(void) { _initialized = true; }
+
+ bool needInitilization(void) { return _ready && !_initialized;}
+ bool isInitialized(void) { return _initialized;}
+ inline std::string& get_sound_path() { return _fxpath;}
+
+private:
+ FGNasalModelDataProxy *_nasal;
+ std::string _fxpath;
+ bool _ready;
+ bool _initialized;
+};
+
+#endif // _FG_AIBASE_HXX