OndselSolver can read and write *.asmt files

This commit is contained in:
Aik-Siong Koh
2023-10-19 10:51:51 -06:00
parent 95cd91c9d1
commit 4360daddf3
61 changed files with 1383 additions and 107 deletions

View File

@@ -42,3 +42,20 @@ void MbD::ASMTAnimationParameters::parseASMT(std::vector<std::string>& lines)
lines.erase(lines.begin());
}
void MbD::ASMTAnimationParameters::storeOnLevel(std::ofstream& os, int level)
{
storeOnLevelString(os, level, "AnimationParameters");
storeOnLevelString(os, level + 1, "nframe");
storeOnLevelInt(os, level + 2, nframe);
storeOnLevelString(os, level + 1, "icurrent");
storeOnLevelInt(os, level + 2, icurrent);
storeOnLevelString(os, level + 1, "istart");
storeOnLevelInt(os, level + 2, istart);
storeOnLevelString(os, level + 1, "iend");
storeOnLevelInt(os, level + 2, iend);
storeOnLevelString(os, level + 1, "isForward");
storeOnLevelBool(os, level + 2, isForward);
storeOnLevelString(os, level + 1, "framesPerSecond");
storeOnLevelInt(os, level + 2, framesPerSecond);
}