Add class 'SimpleDynamic' to base-writer, migrate AnimValue to use it

This commit is contained in:
2023-10-17 19:34:50 -04:00
parent edea43839f
commit 5373182a59
4 changed files with 166 additions and 199 deletions

View File

@@ -18,7 +18,7 @@ void World::tangible_clear_plane_and_xyz(int64_t id, const eng::string &plane, c
assert(t != nullptr);
AnimState state;
state.set_string("plane", plane);
state.set_xyz("xyz", xyz);
state.set_dxyz("xyz", xyz);
state.set_persistent("plane");
state.set_persistent("xyz");
t->anim_queue_.clear(state);
@@ -30,7 +30,7 @@ void World::tangible_walkto(int64_t id, float x, float y) {
assert(t != nullptr);
AnimState state = t->anim_queue_.get_final_persistent();
state.set_string("action", "walkto");
state.set_xyz("xyz", util::DXYZ(x,y,0.0));
state.set_dxyz("xyz", util::DXYZ(x,y,0.0));
t->anim_queue_.add(state);
}