4 #include <simgear/misc/sg_path.hxx>
5 #include <simgear/structure/subsystem_mgr.hxx>
6 #include <simgear/nasal/nasal.h>
8 class FGNasalSys : public SGSubsystem
12 virtual ~FGNasalSys();
14 virtual void update(double dt) { /* noop */ }
16 virtual bool handleCommand(const SGPropertyNode* arg);
18 // Implementation of the settimer extension function
19 void setTimer(naRef args);
23 // FGTimer subclass for handling Nasal timer callbacks.
24 // See the implementation of the settimer() extension function for
28 virtual void timerExpired();
34 void readScriptFile(SGPath file, const char* lib);
35 void hashset(naRef hash, const char* key, naRef val);
37 naRef parse(const char* filename, const char* buf, int len);
38 void handleTimer(NasalTimer* t);
44 int _nextTimerHashKey;
47 #endif // __NASALSYS_HXX