X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fscripting%2Ffunctions.hpp;h=cd139c25c897a2f5f33eacbf29e5f50d93ea1279;hb=1240eda3ac57e6607b206e3c9cf7feb65c3be620;hp=638d77e183f34c14a8fe3a83e57960ed3b17e1aa;hpb=1980142d4600d3834e774d410798b47358aa555a;p=supertux.git diff --git a/src/scripting/functions.hpp b/src/scripting/functions.hpp index 638d77e18..cd139c25c 100644 --- a/src/scripting/functions.hpp +++ b/src/scripting/functions.hpp @@ -48,6 +48,16 @@ SQInteger get_current_thread(HSQUIRRELVM vm) __custom("t"); void display_text_file(const std::string& filename); /** + * Load and display a worldmap (on next screenswitch) + */ +void load_worldmap(const std::string& filename); + +/** + * Load and display a level (on next screenswitch) + */ +void load_level(const std::string& filename); + +/** * Suspend the script execution for the specified number of seconds */ void wait(HSQUIRRELVM vm, float seconds) __suspend; @@ -93,6 +103,11 @@ std::string translate(const std::string& text); void import(HSQUIRRELVM v, const std::string& filename); /** + * Save world state to savegame + */ +void save_state(); + +/** * enable/disable drawing of collision rectangles */ void debug_collrects(bool enable);