Added get_animation_queue to DrivenEngine

This commit is contained in:
2023-07-24 17:21:44 -04:00
parent 5db04b3abc
commit ab005fc968
7 changed files with 89 additions and 0 deletions

View File

@@ -40,6 +40,7 @@
#include "streambuffer.hpp"
#include "debugcollector.hpp"
#include "util.hpp"
#include "enginewrapper.hpp"
#include <cassert>
#include <ostream>
@@ -265,6 +266,14 @@ public:
//
AnimState get_final_everything() const;
// Get the contents of the animation queue for export to the engine wrapper.
//
// Caution: this exports pointers into existing allocated strings.
// The pointers in this array are only valid until you modify the
// animation queue.
//
void get_for_engine_wrapper(std::vector<EngineWrapper::AnimEntry> *into) const;
private:
int size_limit_;
eng::deque<Step> steps_;