aboutsummaryrefslogtreecommitdiff
path: root/game/mainmenu/ButtonTransitionPreviewScript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/mainmenu/ButtonTransitionPreviewScript.cpp')
-rw-r--r--game/mainmenu/ButtonTransitionPreviewScript.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/game/mainmenu/ButtonTransitionPreviewScript.cpp b/game/mainmenu/ButtonTransitionPreviewScript.cpp
deleted file mode 100644
index d73c0f3..0000000
--- a/game/mainmenu/ButtonTransitionPreviewScript.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include "ButtonTransitionPreviewScript.h"
-#include "MainMenuConfig.h"
-#include "iostream"
-
-using namespace crepe;
-using namespace std;
-
-
-void ButtonTransitionPreviewScript::init(){
- cout << "script init" << endl;
- IButtonScript::init();
- this->subscribe<ButtonPressEvent>([this](const ButtonPressEvent& e) { return this->on_button_press(e); });
-}
-
-bool ButtonTransitionPreviewScript::on_button_press(const ButtonPressEvent& e){
- if(!this->transition) this->transition = true;
- cout << "Start triggered:" << e.metadata.game_object_id << std::endl;
- return false;
-}
-
-const char* ButtonTransitionPreviewScript::get_scene_name() const {
- // Provide the next scene defined in MainMenuConfig
- return MainMenuConfig::PREVIEW_SCENE;
-}