Exemplo n.º 1
0
            public InternalTimer(DonationBox container, TimeSpan delay) : base(delay)
            {
                m_Container  = container;
                m_RelockTime = DateTime.Now + delay;

                Start();
            }
Exemplo n.º 2
0
        public static void VerifyExistence()
        {
            bool exist = false;

            foreach (Item item in World.Items.Values)
            {
                if (item is DonationBox)
                {
                    box = item as DonationBox;
                    exist = true;
                }
            }

            if (!exist)
            {
                if (Config.CanBeGloballyAccessed)
                    box = new DonationBox(true);
                else
                    box = new DonationBox();
            }
        }
Exemplo n.º 3
0
			public InternalTimer( DonationBox container, TimeSpan delay ) : base( delay )
			{
				m_Container = container;
				m_RelockTime = DateTime.Now + delay;

				Start();
			}
Exemplo n.º 4
0
			public InternalTimer( DonationBox container ) : this( container, TimeSpan.FromMinutes( 5.0 ) )
			{
			}
Exemplo n.º 5
0
 public InternalTimer(DonationBox container) : this(container, TimeSpan.FromMinutes(5.0))
 {
 }