Beispiel #1
0
 public HTMLBook( int itemID, int pageCount )
     : base(itemID, pageCount, true)
 {
     m_HTMLContent = new HTMLContent( pageCount, MaxLines, this );
 }
Beispiel #2
0
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();

            switch ( version )
            {
                case 2:
                {
                    m_Seal = reader.ReadString();
                    goto case 1;
                }
                case 1:
                {
                    m_SealedBy = reader.ReadMobile();
                    goto case 0;
                }

                case 0:
                {
                    m_Cypher = reader.ReadString();

                    m_Language = (Language)reader.ReadInt();

                    FixContent();

                    m_HTMLContent = new HTMLContent( PagesCount, MaxLines, this );
                    m_HTMLContent.Deserialize( reader );

                    FixStyling();

                    m_HTMLContent.UpdateCache();
                    break;
                }
            }
        }