Add login.initialize function

This commit is contained in:
2024-02-27 17:32:08 -05:00
parent 2b426eefeb
commit 32dae0df5a
5 changed files with 40 additions and 79 deletions

View File

@@ -34,7 +34,7 @@ public:
// the invariant that there's always an actor. When the first difference
// transmission arrives, this actor may be deleted, or it may just be
// ignored, at the server's discretion.
actor_id_ = world_->create_login_actor();
actor_id_ = world_->create_login_actor(false);
// Clear the unack command queue.
unack_.clear();
@@ -57,7 +57,7 @@ public:
channel_.reset();
// Create the standalone actor.
actor_id_ = world_->create_login_actor();
actor_id_ = world_->create_login_actor(true);
// TODO: initialize the standalone actor.