Update CMake to 3.2.1 in .travis.yml
[supertux.git] / src / scripting / functions.hpp
index 638d77e..cd139c2 100644 (file)
@@ -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);