Пример #1
0
 public TownBox(TownStone Town) : base(0xE41)
 {
     m_Town         = Town;
     Name           = "Trésorerie";
     Hue            = Town.Hue;
     m_Town.Box     = this;
     m_Payeurs      = new ArrayList();
     m_HistoPayeurs = new ArrayList();
     m_Retard_1     = new ArrayList();
     m_Retard_2     = new ArrayList();
     m_Taxe         = 500;
     m_CaisseVille  = 0;
     m_CaisseGarde  = 0;
     m_Delay        = TimeSpan.FromDays(7.0);
     m_EndDate      = DateTime.Now + m_Delay;
     m_TaxeTimer    = new TaxeTimer(m_Town, m_Delay);
     m_TaxeTimer.Start();
 }
Пример #2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            m_Town         = (TownStone)reader.ReadItem();
            m_Payeurs      = reader.ReadMobileList();
            m_HistoPayeurs = reader.ReadMobileList();
            m_Retard_1     = reader.ReadMobileList();
            m_Retard_2     = reader.ReadMobileList();
            m_Taxe         = reader.ReadInt();
            m_CaisseVille  = reader.ReadInt();
            m_CaisseGarde  = reader.ReadInt();
            m_EndDate      = reader.ReadDateTime();
            m_TaxeTimer    = new TaxeTimer(m_Town, m_EndDate - DateTime.Now);
            m_TaxeTimer.Start();
            m_Delay = reader.ReadTimeSpan();
        }
Пример #3
0
		public TownBox(TownStone Town) : base( 0xE41 )
		{
			m_Town = Town;
			Name = "Trésorerie";
			Hue = Town.Hue;
			m_Town.Box = this;
			m_Payeurs = new ArrayList();
			m_HistoPayeurs = new ArrayList();
			m_Retard_1 = new ArrayList();
			m_Retard_2 = new ArrayList();
			m_Taxe = 500;
			m_CaisseVille = 0;
			m_CaisseGarde = 0;
			m_Delay = TimeSpan.FromDays( 7.0 );
			m_EndDate = DateTime.Now + m_Delay;
			m_TaxeTimer = new TaxeTimer(m_Town, m_Delay);
			m_TaxeTimer.Start();
		}
Пример #4
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
			m_Town = (TownStone)reader.ReadItem();
			m_Payeurs = reader.ReadMobileList();
			m_HistoPayeurs = reader.ReadMobileList();
			m_Retard_1 = reader.ReadMobileList();
			m_Retard_2 = reader.ReadMobileList();
			m_Taxe = reader.ReadInt();
			m_CaisseVille = reader.ReadInt();
			m_CaisseGarde = reader.ReadInt();
			m_EndDate = reader.ReadDateTime();
			m_TaxeTimer = new TaxeTimer(m_Town, m_EndDate - DateTime.Now);
			m_TaxeTimer.Start();
			m_Delay = reader.ReadTimeSpan();
		}