Implement autodeletion of players on logout

This commit is contained in:
2024-03-04 16:33:23 -05:00
parent c2a94b5332
commit 044bb89edf
4 changed files with 84 additions and 11 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(false);
actor_id_ = world_->create_login_actor();
// Clear the unack command queue.
unack_.clear();
@@ -57,7 +57,7 @@ public:
channel_.reset();
// Create the standalone actor.
actor_id_ = world_->create_login_actor(true);
actor_id_ = world_->create_login_actor();
// TODO: initialize the standalone actor.