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(); }
private void HandleServerInfo(BinaryReader br) { _serverInfoJson = br.ReadUTF8(); _serverInfoReceivedSignal?.Set(); }