Just breaking stuff
This commit is contained in:
@ -0,0 +1,32 @@
|
||||
// Copyright (c) 2022 Dominic Masters
|
||||
//
|
||||
// This software is released under the MIT License.
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
#include "VisualNovelChangeSimpleBackgroundEvent.hpp"
|
||||
#include "game/DawnGame.hpp"
|
||||
|
||||
using namespace Dawn;
|
||||
|
||||
VisualNovelChangeSimpleBackgroundEvent::VisualNovelChangeSimpleBackgroundEvent(
|
||||
VisualNovelManager *manager, Texture *texture
|
||||
) : IVisualNovelEvent(manager) {
|
||||
this->texture = texture;
|
||||
}
|
||||
|
||||
void VisualNovelChangeSimpleBackgroundEvent::onStart(IVisualNovelEvent *prev) {
|
||||
auto back = this->manager->getScene()
|
||||
->findComponent<SimpleVisualNovelBackground>()
|
||||
;
|
||||
|
||||
assertNotNull(back);
|
||||
back->setTexture(this->texture);
|
||||
}
|
||||
|
||||
bool_t VisualNovelChangeSimpleBackgroundEvent::onUpdate() {
|
||||
return false;
|
||||
}
|
||||
|
||||
void VisualNovelChangeSimpleBackgroundEvent::onEnd() {
|
||||
|
||||
}
|
Reference in New Issue
Block a user