X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Ffunctions.hpp;h=638d77e183f34c14a8fe3a83e57960ed3b17e1aa;hb=c81b842f4880cd7b4958e03e983e50bff95d02ef;hp=9c2b58fce6349516a5aea8d9d30d507c4bd9303b;hpb=08813a74da6ac1fd045a105e4e8105f1d7f716f0;p=supertux.git diff --git a/src/scripting/functions.hpp b/src/scripting/functions.hpp index 9c2b58fce..638d77e18 100644 --- a/src/scripting/functions.hpp +++ b/src/scripting/functions.hpp @@ -25,7 +25,7 @@ #define __custom(x) #endif -namespace Scripting { +namespace scripting { /** * Display the value of the argument. This is useful for inspecting tables. @@ -48,16 +48,6 @@ 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; @@ -103,16 +93,6 @@ std::string translate(const std::string& text); void import(HSQUIRRELVM v, const std::string& filename); /** - * Save world state to savegame - */ -void save_state(); - -/** - * Update worldmap from worldmap state (state.world variable) - */ -void update_worldmap(); - -/** * enable/disable drawing of collision rectangles */ void debug_collrects(bool enable); @@ -128,6 +108,11 @@ void debug_show_fps(bool enable); void debug_draw_solids_only(bool enable); /** + * enable/disable drawing of editor images + */ +void debug_draw_editor_images(bool enable); + +/** * enable/disable worldmap ghost mode */ void debug_worldmap_ghost(bool enable); @@ -212,7 +197,7 @@ void record_demo(const std::string& filename); */ void play_demo(const std::string& filename); -} // namespace Scripting +} // namespace scripting #endif