Пример #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadEncodedInt();

            m_Game  = reader.ReadItem() as CTFGame;
            m_Stone = reader.ReadItem() as GameJoinStone;
            int count = reader.ReadEncodedInt();

            m_Times = new TimeSpan[count];
            for (int i = 0; i < count; i++)
            {
                m_Times[i] = reader.ReadTimeSpan();
            }
            bool active = reader.ReadBool();

            m_Duration        = reader.ReadTimeSpan();
            m_Doors           = reader.ReadItem() as BaseDoor;
            m_CTFJoinMessage  = reader.ReadString();
            m_CTFStartMessage = reader.ReadString();
            m_CTFMessageHue   = reader.ReadInt();

            Activate(active);
        }
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadEncodedInt();

			m_Game = reader.ReadItem() as CTFGame;
			m_Stone = reader.ReadItem() as GameJoinStone;
			int count = reader.ReadEncodedInt();
			m_Times = new TimeSpan[count];
			for ( int i = 0; i < count; i++ )
				m_Times[i] = reader.ReadTimeSpan();
			bool active = reader.ReadBool();
			m_Duration = reader.ReadTimeSpan();
			m_Doors = reader.ReadItem() as BaseDoor;
			m_CTFJoinMessage = reader.ReadString();
			m_CTFStartMessage = reader.ReadString();
			m_CTFMessageHue = reader.ReadInt();

			Activate( active );
		}
Пример #3
0
			public RefreshTimer( GameJoinStone owner, GameJoinStone gam ) : base( TimeSpan.FromSeconds(0.1) )
			{
				m_Owner = owner;
				m_gam = gam;
				Priority = TimerPriority.TwoFiftyMS;
			}