Ejemplo n.º 1
0
        public void SendAsync(CharacterSpecialOptionListUpdateResponse value) =>
        Session.SendAsync(ClientOpcode.CharacterSpecialOptionUpdateList, (PacketWriter writer) =>
        {
            writer.Write(value.Character);
            writer.Write((byte)value.Values.Count());

            foreach (CharacterSpecialOptionListUpdateResponse.Entity option in value.Values)
            {
                writer.WriteSpecialOption(option.Id);
                writer.Write(option.Value);
            }
        });
Ejemplo n.º 2
0
        public void SendDeferred(CharacterSpecialOptionListUpdateResponse value) =>
        Session.SendDeferred(SCCategory.Character, SCCharacter.UpdateSpecialOptionList, (SPacketWriter writer) =>
        {
            writer.Write(value.Character);
            writer.Write((byte)value.Values.Count());

            foreach (CharacterSpecialOptionListUpdateResponse.Entity option in value.Values)
            {
                writer.WriteSpecialOption(option.Id);
                writer.Write(option.Value);
            }
        });