/// <summary> /// Initializes a new instance of the <see cref="ReceivingPreferenceEventArgs"/> class. /// </summary> /// <param name="player"><inheritdoc cref="Player"/></param> /// <param name="itemType"><inheritdoc cref="Item"/></param> /// <param name="currentCode"><inheritdoc cref="CurrentCode"/></param> /// <param name="newCode"><inheritdoc cref="NewCode"/></param> /// <param name="isAllowed"><inheritdoc cref="IsAllowed"/></param> public ReceivingPreferenceEventArgs( Player player, ItemType itemType, uint currentCode, uint newCode, bool isAllowed = true) { Player = player; Item = itemType; CurrentAttachmentIdentifiers = Item.GetAttachmentIdentifiers(currentCode); NewAttachmentIdentifiers = Item.GetAttachmentIdentifiers(newCode).ToList(); CurrentCode = currentCode; IsAllowed = isAllowed; }