Added get_animation_queue to DrivenEngine
This commit is contained in:
@@ -611,6 +611,17 @@ AnimState AnimQueue::get_final_everything() const {
|
||||
return result;
|
||||
}
|
||||
|
||||
void AnimQueue::get_for_engine_wrapper(std::vector<EngineWrapper::AnimEntry> *into) const {
|
||||
into->resize(steps_.size());
|
||||
for (int i = 0; i < int(steps_.size()); i++) {
|
||||
const AnimQueue::Step &step = steps_[i];
|
||||
EngineWrapper::AnimEntry &entry = (*into)[i];
|
||||
entry.hash = step.hash;
|
||||
entry.data = step.encoding.c_str();
|
||||
entry.size = step.encoding.size();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
LuaDefine(unittests_animqueue, "", "some unit tests") {
|
||||
// Useful objects.
|
||||
|
||||
Reference in New Issue
Block a user