Less serialization and deserialization of Lua Source, also, Invocation is now simpler
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user