9b6749fbf5e24001804608947e1b8630bf00ca8a
[supertux.git] / src / scripting / level.cpp
1 #include <config.h>
2
3 #include <string>
4 #include <stdio.h>
5 #include "level.h"
6 #include "game_session.h"
7
8 namespace Scripting
9 {
10   Level::Level()
11   {}
12
13   Level::~Level()
14   {}
15
16   void
17   Level::finish()
18   {
19     GameSession::current()->finish();
20   }
21
22   void
23   Level::spawn(const std::string& sector, const std::string& spawnpoint)
24   {
25     GameSession::current()->respawn(sector, spawnpoint);
26   }
27 }