Exemplo n.º 1
0
        /// <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;
        }
Exemplo n.º 2
0
        /// <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;
        }
Exemplo n.º 3
0
 /// <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;
 }
Exemplo n.º 4
0
 /// <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;
 }