/// <summary> /// Create a new <see cref="MailAttachment"/> from an existing <see cref="CharacterMailAttachment"/> model. /// </summary> /// <param name="model"></param> public MailAttachment(CharacterMailAttachment model) { Id = model.Id; Index = model.Index; Item = new ItemEntity(model.ItemGu); saveMask = MailAttachmentSaveMask.None; }
/// <summary> /// Create a new <see cref="MailAttachment"/>. /// </summary> public MailAttachment(ulong mailId, uint index, ItemEntity item) { Id = mailId; Index = index; Item = item; saveMask = MailAttachmentSaveMask.Create; }
/// <summary> /// Create a new <see cref="UnlockedSpell"/> from a <see cref="SpellBaseInfo"/>. /// </summary> public UnlockedSpell(SpellBaseInfo info, byte tier, ItemEntity item) { Info = info ?? throw new ArgumentNullException(); Tier = tier; Item = item; }
/// <summary> /// Create a new <see cref="UnlockedSpell"/> from a <see cref="Spell4BaseEntry"/> entry. /// </summary> public UnlockedSpell(Spell4BaseEntry entry, byte tier, ItemEntity item) { Entry = entry ?? throw new ArgumentNullException(); Tier = tier; Item = item; }