Ejemplo n.º 1
0
        public TemplateProfile(PlayerMobile owner)
        {
            Owner = owner;

            Equipment = new List <Item>();
            PackItems = new List <Item>();

            Templates = new TemplateCollection();

            Selected = null;
        }
Ejemplo n.º 2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            #region Critical Non-Versioned Values

            Owner     = reader.ReadMobile <PlayerMobile>();
            Templates = new TemplateCollection(reader);
            Selected  = Templates.Find(reader.ReadHashCode <TemplateSerial>());

            #endregion

            switch (version)
            {
            case 0:
            {
                PackItems = reader.ReadBlockList(reader.ReadItem);
                Equipment = reader.ReadBlockList(reader.ReadItem);
            }
            break;
            }
        }