Added luasnap checkpointing mechanism

This commit is contained in:
2021-02-09 17:15:54 -05:00
parent 368d066cc7
commit 8f557ff387
11 changed files with 349 additions and 73 deletions

View File

@@ -8,6 +8,7 @@
#include "animqueue.hpp"
#include "source.hpp"
#include "gui.hpp"
#include "luasnap.hpp"
#include <memory>
#include <unordered_map>
@@ -43,10 +44,10 @@ public:
class World {
public:
// A pointer to the lua State.
// A lua intepreter with snapshot function.
//
lua_State *lua_state_;
LuaSnap lua_snap_;
// The Global ID Pool.
//
IdGlobalPool id_global_pool_;
@@ -81,7 +82,7 @@ public:
//
// Get the lua interpreter associated with this world model.
//
lua_State *get_lua_state() { return lua_state_; }
lua_State *state() { return lua_snap_.state(); }
// get_near
//