Exemplo n.º 1
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write(0);               // version

            Town.WriteReference(writer, m_Town);
        }
Exemplo n.º 2
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

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

            Town.WriteReference(writer, this.m_Town);
            Faction.WriteReference(writer, this.m_Faction);
        }
Exemplo n.º 3
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

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

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

            m_Orders.Serialize(writer);
        }
Exemplo n.º 4
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write(0); // version

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

            writer.Write(m_LastMonolith);

            writer.Write(m_LastStolen);
            writer.Write(m_GraceStart);
            writer.Write(m_CorruptionStart);
            writer.Write(m_PurificationStart);
        }
Exemplo n.º 5
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);
        }
Exemplo n.º 6
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

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

            writer.Write(m_PreviousThief);

            writer.Write(m_OriginalThief);

            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);
        }