mini stage 6

This commit is contained in:
2026-09-01 17:18:24 -04:00
parent 019a2f73fb
commit 92b8fcae24
23 changed files with 293556 additions and 132265 deletions
+6 -1
View File
@@ -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;