namespace Scripting
{
- Level::Level()
- {}
-
- Level::~Level()
- {}
-
void
- Level::finish(bool win)
+ Level_finish(bool win)
{
if(GameSession::current() == NULL)
return;
}
void
- Level::spawn(const std::string& sector, const std::string& spawnpoint)
+ Level_spawn(const std::string& sector, const std::string& spawnpoint)
{
if(GameSession::current() == NULL)
return;
}
void
- Level::flip_vertically()
+ Level_flip_vertically()
{
FlipLevelTransformer flip_transformer;
flip_transformer.transform(GameSession::current()->get_current_level());
}
void
- Level::toggle_pause()
+ Level_toggle_pause()
{
if(GameSession::current() == NULL)
return;
}
void
- Level::edit(bool edit_mode)
+ Level_edit(bool edit_mode)
{
if(GameSession::current() == NULL) return;
GameSession::current()->set_editmode(edit_mode);