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); } });
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); } });