added load npcs from json

This commit is contained in:
Vlad committed 2026-04-11 15:30:29 +06:00
1 parent b3fda88784
commit 943b6b4d21
6 files changed
+208 -4

No files matched your search

+4 -1
View File
@@ -18,7 +18,10 @@ enum class AnimationState {
class Character {
public:
void loadAnimation(AnimationState state, const std::string& filename, const std::string& zipFile = "");
void setTexture(std::shared_ptr<Texture> texture);
// void setTexture(std::shared_ptr<Texture> texture);
void setTexture(std::shared_ptr<Texture> texture) {
this->texture = texture;
}
void update(int64_t deltaMs);
// onArrived is called once when the character reaches this target.
// From Python you can chain further commands (walk, wait, trigger others).