Less serialization and deserialization of Lua Source, also, Invocation is now simpler
This commit is contained in:
@@ -99,7 +99,7 @@ private:
|
||||
void event_init(int argc, char *argv[])
|
||||
{
|
||||
world_.reset(new World(WORLD_TYPE_MASTER));
|
||||
world_->update_source(get_lua_source());
|
||||
world_->update_source(get_lua_source_pack());
|
||||
world_->run_unittests();
|
||||
actor_id_ = world_->create_login_actor();
|
||||
stdostream() << "Login actor ID: " << actor_id_ << std::endl;
|
||||
@@ -108,7 +108,7 @@ private:
|
||||
|
||||
void event_update()
|
||||
{
|
||||
world_->update_source(get_lua_source());
|
||||
world_->update_source(get_lua_source_pack());
|
||||
while (true) {
|
||||
eng::string line = get_stdio_channel()->in()->readline();
|
||||
if (line == "") break;
|
||||
|
||||
Reference in New Issue
Block a user