Пример #1
0
        public async Task CPartyRequestResult(GSSession session, CPartyRequestResult message)
        {
            var trg = Program.server.Clients.FirstOrDefault(x => x.ID == message.Number);

            if (trg == null)
            {
                await session.SendAsync(new SPartyResult(PartyResults.Fail));

                return;
            }
            PartyManager.CreateLink(session.Player, trg.Player);
        }