Less serialization and deserialization of Lua Source, also, Invocation is now simpler

This commit is contained in:
2023-10-19 19:42:33 -04:00
parent 049b0b893a
commit 7104a523b5
16 changed files with 134 additions and 150 deletions

View File

@@ -36,7 +36,7 @@ public:
master_.reset(new World(WORLD_TYPE_MASTER));
// Update the source code of the master model.
master_->update_source(get_lua_source());
master_->update_source(get_lua_source_pack());
// Create an actor for administrative commands.
admin_id_ = master_->create_login_actor();
@@ -168,7 +168,7 @@ public:
virtual void event_update() {
// If the driver has reloaded the source, put it into master model.
master_->update_source(get_lua_source());
master_->update_source(get_lua_source_pack());
// Check for keyboard input on stdin.
while (true) {