Example #1
0
        //clone constructor
        public LargeBODMobileListEntry(LargeBODMobileListEntry entry)
            : base(entry)
        {
            _AmountMax = entry.AmountMax;

            _Entries = new LargeMobileBulkEntry[entry.Entries.Length];

            //proper cloning is required
            for (int i = 0; i < entry.Entries.Length; i++)
            {
                _Entries[i]        = new LargeMobileBulkEntry(null, entry.Entries[i].Details);
                _Entries[i].Amount = entry.Entries[i].Amount;
            }

            GenerateContentsName();
        }
Example #2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            _AmountMax = reader.ReadInt();

            int count = reader.ReadInt();

            _Entries = new LargeMobileBulkEntry[count];
            for (int i = 0; i < count; i++)
            {
                _Entries[i] = new LargeMobileBulkEntry(null, reader);
            }

            GenerateContentsName();
        }
Example #3
0
        //master constructor
        public LargeBODMobileListEntry(Item item)
            : base(item)
        {
            LargeTamingBOD bod = (LargeTamingBOD)item;

            _AmountMax = bod.AmountMax;

            //proper cloning is required

            _Entries = new LargeMobileBulkEntry[bod.Entries.Length];
            for (int i = 0; i < bod.Entries.Length; i++)
            {
                _Entries[i]        = new LargeMobileBulkEntry(null, bod.Entries[i].Details);
                _Entries[i].Amount = bod.Entries[i].Amount;
            }



            //this produces the name for the bod based on the bod name definitions
            GenerateContentsName();
        }