added load npcs from json
This commit is contained in:
1 parent
b3fda88784
commit
943b6b4d21
6 files changed
+208
-4
No files matched your search
+4
-1
@@ -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).
|
||||
|
||||
Reference in new issue
Block a user