Added login process to client

Doesn't work yet, gotta figure this out.
This commit is contained in:
juanjp600
2016-09-01 11:42:21 -03:00
parent db0d4b1cd6
commit 104ac73b97
4 changed files with 305 additions and 106 deletions
@@ -66,7 +66,7 @@ namespace Barotrauma.Networking
else
{
nonceMsg.Write(true); //true = password
nonceMsg.Write(unauthClient.Nonce); //here's nonce, encrypt with this
nonceMsg.Write((Int32)unauthClient.Nonce); //here's nonce, encrypt with this
}
server.SendMessage(nonceMsg, conn, NetDeliveryMethod.Unreliable);
}