// Copyright (c) 2022 Dominic Masters // // This software is released under the MIT License. // https://opensource.org/licenses/MIT #pragma once #include "visualnovel/scene/SimpleVNScene.hpp" #include "scenes/Scene_17.hpp" namespace Dawn { class Scene_16 : public SimpleVNScene { protected: void vnStage() override { } void onSceneEnded() { auto scene = new Scene_17(this->game); game->assetManager.queueSwap( scene->getRequiredAssets(), this->getRequiredAssets() ); game->assetManager.syncLoad(); scene->stage(); this->game->sceneCutover(scene); } public: Scene_16(DawnGame *game) : SimpleVNScene(game) { } std::vector getRequiredAssets() override { std::vector assets = SimpleVNScene::getRequiredAssets(); return assets; } IVisualNovelEvent * getVNEvent() override { auto start = new VisualNovelPauseEvent(vnManager, 0.1f); start ->then(new VisualNovelTextboxEvent(vnManager, "scene.16.1")) ->then(new VisualNovelCallbackEvent(vnManager, this, &Scene_16::onSceneEnded)) ; return start; } }; }