1 #ifndef __SCRIPT_INTERPRETER_H__
2 #define __SCRIPT_INTERPRETER_H__
7 #include "game_object.h"
8 #include "scripting/sound.h"
9 #include "scripting/level.h"
13 class ScriptInterpreter : public GameObject
16 ScriptInterpreter(Sector* sector);
19 void draw(DrawingContext& );
22 void load_script(std::istream& in, const std::string& sourcename = "");
25 void expose_object(void* object, const std::string& name,
26 const std::string& type);
28 void set_wakeup_time(float seconds);
30 static ScriptInterpreter* current()
37 static ScriptInterpreter* _current;
40 Scripting::Sound* sound;
41 Scripting::Level* level;