Beispiel #1
0
        private async Task KickPlayer()
        {
            var game = await GetGameSession();

            await game.LeaveGame(this);

            await _sink.Close();

            DeactivateOnIdle();
        }
Beispiel #2
0
        private async Task KickPlayer()
        {
            _sendKeepAliveTimer?.Dispose();
            _sendKeepAliveTimer = null;
            _worldTimeSyncTimer?.Dispose();
            _worldTimeSyncTimer = null;

            var game = await GetGameSession();

            await game.LeaveGame(this);

            await _sink.Close();

            DeactivateOnIdle();
        }
Beispiel #3
0
 public Task Kick()
 {
     return(_sink.Close());
 }