diff options
Diffstat (limited to 'src/script_system.cpp')
| -rw-r--r-- | src/script_system.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
| diff --git a/src/script_system.cpp b/src/script_system.cpp index e2b117a..6e38905 100644 --- a/src/script_system.cpp +++ b/src/script_system.cpp | |||
| @@ -50,6 +50,12 @@ ScriptSystem::ScriptSystem(Game& game) : game_(game) { | |||
| 50 | return game_.getSpriteByAlias(alias); | 50 | return game_.getSpriteByAlias(alias); |
| 51 | }); | 51 | }); |
| 52 | 52 | ||
| 53 | engine_.set_function( | ||
| 54 | "loadMap", | ||
| 55 | [&] (std::string filename, std::string warpPoint) { | ||
| 56 | game_.loadMap(filename, warpPoint); | ||
| 57 | }); | ||
| 58 | |||
| 53 | engine_.script_file("../res/scripts/common.lua"); | 59 | engine_.script_file("../res/scripts/common.lua"); |
| 54 | } | 60 | } |
| 55 | 61 | ||
