- Made miniswig support HSQUIRRELVM arguments (and realized it was not needed
[supertux.git] / src / scripting / functions.cpp
1 #include <stdio.h>
2 #include <string>
3 #include <squirrel.h>
4 #include "functions.h"
5 #include "script_interpreter.h"
6 #include "tinygettext/tinygettext.h"
7 #include "gettext.h"
8
9 namespace Scripting
10 {
11
12 void set_wakeup_time(float seconds)
13 {
14   ScriptInterpreter::current()->suspend(seconds);
15 }
16
17 std::string translate(const std::string& text)
18 {
19   return dictionary_manager.get_dictionary().translate(text);
20 }
21
22 }
23