- Change ScriptInterpreter to a gameobject, so we can now have several script
[supertux.git] / src / scripting / functions.cpp
index b0b9429..5b24c92 100644 (file)
@@ -1,13 +1,22 @@
 #include <stdio.h>
+#include <string>
+#include <squirrel.h>
 #include "functions.h"
+#include "script_interpreter.h"
+#include "tinygettext/tinygettext.h"
+#include "gettext.h"
 
 namespace Scripting
 {
 
-void wait(float secs)
+void set_wakeup_time(float seconds)
 {
-    (void) secs;
-    printf("Wait not implemented.\n");
+  ScriptInterpreter::current()->set_wakeup_time(seconds);
+}
+
+std::string translate(const std::string& text)
+{
+  return dictionary_manager.get_dictionary().translate(text);
 }
 
 }