mini stage 6
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <imgui.h>
|
||||
#include <string>
|
||||
|
||||
#include "../../entity.hpp"
|
||||
#include "../../render/canvas.hpp"
|
||||
@@ -22,6 +23,9 @@ namespace game::state::play
|
||||
bool isSceneActive{};
|
||||
bool isAnimationEntryStarted{};
|
||||
float animationEntryTimePrevious{};
|
||||
std::string defaultAnimationOnEnd{};
|
||||
|
||||
void default_animation_on_end_play(Entity&);
|
||||
|
||||
public:
|
||||
static constexpr auto LIFETIME = 10.0f;
|
||||
@@ -31,7 +35,8 @@ namespace game::state::play
|
||||
bool isEnabled{true};
|
||||
float time{};
|
||||
|
||||
void set(resource::xml::Schema::Element*, Entity&, bool isInterruptible = true, bool isSequenceAdvance = false);
|
||||
void set(resource::xml::Schema::Element*, Entity&, bool isInterruptible = true, bool isSequenceAdvance = false,
|
||||
std::string defaultAnimationOnEnd = {});
|
||||
void update(Entity&, Canvas&);
|
||||
bool is_interruptible() const;
|
||||
bool is_finished() const;
|
||||
|
||||
Reference in New Issue
Block a user