miniswig suspend is now an attribute appended to functions
[supertux.git] / src / scripting / functions.hpp
1 #ifndef __FUNCTIONS_H__
2 #define __FUNCTIONS_H__
3
4 #ifndef SCRIPTING_API
5 #define __suspend
6 #endif
7
8 namespace Scripting
9 {
10
11 /** displays a text file and scrolls it over the screen */
12 void display_text_file(const std::string& filename);
13 /**
14  * Suspends the script execution for the specified number of seconds
15  */
16 void wait(float seconds) __suspend;
17 /** translates a give text into the users language (by looking it up in the .po
18  * files)
19  */
20 std::string translate(const std::string& text);
21 /** load a script file and executes it 
22  * This is typically used to import functions from external files.
23  */
24 void import(HSQUIRRELVM v, const std::string& filename);
25
26 }
27
28 #endif
29