Add class 'SimpleDynamic' to base-writer, migrate AnimValue to use it
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user