Starting new VN Structure
This commit is contained in:
28
archive/visualnovel/events/timing/VisualNovelPauseEvent.hpp
Normal file
28
archive/visualnovel/events/timing/VisualNovelPauseEvent.hpp
Normal file
@ -0,0 +1,28 @@
|
||||
// Copyright (c) 2022 Dominic Masters
|
||||
//
|
||||
// This software is released under the MIT License.
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
#pragma once
|
||||
#include "visualnovel/VisualNovelManager.hpp"
|
||||
|
||||
namespace Dawn {
|
||||
class VisualNovelPauseEvent : public IVisualNovelEvent {
|
||||
protected:
|
||||
float_t time;
|
||||
float_t duration;
|
||||
|
||||
void onStart(IVisualNovelEvent *previous) override;
|
||||
bool_t onUpdate() override;
|
||||
void onEnd() override;
|
||||
|
||||
public:
|
||||
/**
|
||||
* Create a new Visual Novel Pause Event.
|
||||
*
|
||||
* @param manager Manager this event belongs to.
|
||||
* @param duration Duration to pause for.
|
||||
*/
|
||||
VisualNovelPauseEvent(VisualNovelManager *manager, float_t duration);
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user