Example #1
0
        private void HandleAuth(BinaryReader br)
        {
            uint authStatus = br.ReadUInt32()
                              .ToLittleEndian();
            byte playerId = br.ReadByte();

            _playerId             = playerId;
            _authenticationResult = (AuthenticationResult)authStatus;
            _authenticated        = _authenticationResult == AuthenticationResult.OK;
            _authenticationReceivedSignal?.Set();
        }
Example #2
0
 private void HandleServerInfo(BinaryReader br)
 {
     _serverInfoJson = br.ReadUTF8();
     _serverInfoReceivedSignal?.Set();
 }