Example #1
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

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

            Town.WriteReference(writer, m_Town);
        }
Example #2
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

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

            Town.WriteReference(writer, m_Town);
            Faction.WriteReference(writer, m_Corrupted);
            Faction.WriteReference(writer, m_Corrupting);

            writer.Write((Item)m_LastMonolith);

            writer.Write(m_LastStolen);
            writer.Write(m_GraceStart);
            writer.Write(m_CorruptionStart);
            writer.Write(m_PurificationStart);
        }
Example #3
0
        public void Serialize(GenericWriter writer)
        {
            writer.WriteEncodedInt((int)3); // version

            writer.Write((DateTime)m_LastIncome);

            writer.WriteEncodedInt((int)m_Tax);
            writer.Write((DateTime)m_LastTaxChange);

            writer.WriteEncodedInt((int)m_Silver);

            Town.WriteReference(writer, m_Town);
            Faction.WriteReference(writer, m_Owner);

            writer.Write((Mobile)m_Sheriff);
            writer.Write((Mobile)m_Finance);
        }