public bool InvitePlayer(GameSize gameSize, string otherNick) { if (Nick == otherNick) { return(false); } var msg = new InvitationMessage() { SenderNick = Nick, ReceiverNick = otherNick, GameSize = gameSize }; _pexesoChannel.InvitePlayer(msg); return(true); }
public void ReceiveGame(InvitationMessage message, bool turn) { ReceiveGameEvent?.Invoke(message, turn); }
public bool AcceptInvitation(InvitationMessage message) { return(InvitationMessageIncomeEvent?.Invoke(message) ?? false); }