Working on health bar

This commit is contained in:
Vladislav Khorev committed 2026-06-01 22:03:05 +03:00
1 parent 8552725dfc
commit 22b0e1992f
12 files changed
+121 -57

No files matched your search

+3
View File
@@ -160,6 +160,9 @@ public:
// Called once when the death animation finishes and the character enters DEATH_IDLE.
std::function<void()> onDeathAnimComplete;
// Called whenever hp changes (e.g. on damage). Arguments: current hp, max hp.
std::function<void(float hp, float maxHp)> onHpChanged;
private:
std::map<AnimationState, BoneAnimationDataNew> animations;