Add template string to SimpleDynamic

This commit is contained in:
2023-10-17 19:55:34 -04:00
parent 5373182a59
commit b4c2d21aee
3 changed files with 18 additions and 10 deletions

View File

@@ -153,7 +153,7 @@ void AnimState::decode(std::string_view s) {
void AnimState::decode_persistent(std::string_view s) {
map_.clear();
StreamBuffer sb(s);
SimpleDynamic dummy;
AnimValue dummy;
while (!sb.empty()) {
eng::string name = sb.read_string();
bool persistent = sb.read_bool();
@@ -297,7 +297,7 @@ void AnimCoreState::decode(std::string_view s) {
plane.clear();
xyz = 0.0;
StreamBuffer sb(s);
SimpleDynamic value;
AnimValue value;
while (!sb.empty()) {
eng::string name = sb.read_string();
bool persistent = sb.read_bool();