Esempio n. 1
0
        private async void handleInvitationRequest(object message)
        {
            if (smurf.groupMember)
            {
                Logger.Push("Recieved party from group host, accepting.", "info", username);
                InvitationRequest req = message as InvitationRequest;
                Thread.Sleep(1000);
                await connection.AcceptInviteForMatchmakingGame(req.InvitationId);

                smurf.updateTimer(100);
            }
            else
            {
                Logger.Push("Recieved party request from a friend, not responding...", "warning", username);
            }
        }