Exemplo n.º 1
0
        public void LeaveRoom(ISession session)
        {
            int entityId = session.Entity.Id;

            _entityHandler.RemoveEntity(entityId);
            session.Entity = null;

            if (!_entityHandler.HasUserEntities)
            {
                StopRoomCycle();
            }
        }