Exemplo n.º 1
0
        public void SendAsync(CharacterSpecialOptionListUpdateRequest request)
        {
            SyncSession?session = Channel.Sessions.Values.FirstOrDefault(s => s.Character.Id == request.Character);

            if (session is null)
            {
                return;
            }

            SendDeferred(new CharacterSpecialOptionListUpdateResponse()
            {
                Character = session.Character.Id,
                Values    = session.SpecialOptions.Select(s => new CharacterSpecialOptionListUpdateResponse.Entity()
                {
                    Id    = s.Id,
                    Value = s.Value
                })
            });
        }
Exemplo n.º 2
0
 public static void UpdateSpecialOptions(Session session, CharacterSpecialOptionListUpdateRequest request) => session.Dimension !
 .SendAsync(request);