Esempio n. 1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            m_CannonDirection = (CannonDirection)reader.ReadEncodedInt();
            m_Canoneer        = (MilitiaCanoneer)reader.ReadMobile();
        }
Esempio n. 2
0
        public override void Serialize(GenericWriter writer)
        {
            if (m_Canoneer != null && m_Canoneer.Deleted)
            {
                m_Canoneer = null;
            }

            base.Serialize(writer);

            writer.Write((int)0); // version

            writer.WriteEncodedInt((int)m_CannonDirection);
            writer.Write((Mobile)m_Canoneer);
        }