27 lines
643 B
C++
27 lines
643 B
C++
// Copyright (c) 2022 Dominic Masters
|
|
//
|
|
// This software is released under the MIT License.
|
|
// https://opensource.org/licenses/MIT
|
|
|
|
#pragma once
|
|
#include "visualnovel/VisualNovelManager.hpp"
|
|
#include "poker/PokerGame.hpp"
|
|
|
|
namespace Dawn {
|
|
class PokerGameEvent : public IVisualNovelEvent {
|
|
protected:
|
|
PokerGame *pokerGame;
|
|
|
|
void onStart(IVisualNovelEvent *previous) override {
|
|
pokerGame = this->manager->getScene()->findComponent<PokerGame>();
|
|
assertNotNull(pokerGame);
|
|
}
|
|
|
|
public:
|
|
PokerGameEvent(VisualNovelManager *manager) :
|
|
IVisualNovelEvent(manager)
|
|
{
|
|
|
|
}
|
|
};
|
|
} |