36 lines
947 B
C++
36 lines
947 B
C++
// Copyright (c) 2023 Dominic Masters
|
|
//
|
|
// This software is released under the MIT License.
|
|
// https://opensource.org/licenses/MIT
|
|
|
|
#pragma once
|
|
#include "visualnovel/events/animation/VisualNovelSimpleCallbackAnimationEvent.hpp"
|
|
|
|
namespace Dawn {
|
|
class VisualNovelTransformItemEvent :
|
|
public VisualNovelSimpleCallbackAnimationEvent<glm::vec3, Transform>
|
|
{
|
|
protected:
|
|
bool_t relative = false;
|
|
SceneItem *item = nullptr;
|
|
void onStart(IVisualNovelEvent *previous) override;
|
|
|
|
public:
|
|
VisualNovelTransformItemEvent(
|
|
VisualNovelManager *man,
|
|
SceneItem *item,
|
|
glm::vec3 start,
|
|
glm::vec3 end,
|
|
easefunction_t *ease,
|
|
float_t duration
|
|
);
|
|
|
|
VisualNovelTransformItemEvent(
|
|
VisualNovelManager *man,
|
|
SceneItem *item,
|
|
glm::vec3 end,
|
|
easefunction_t *ease,
|
|
float_t duration
|
|
);
|
|
};
|
|
} |