Пример #1
0
        public void Complete(Guild g)
        {
            if (g != null)
            {
                Timer.DelayCall <Guild>(TimeSpan.FromSeconds(5), Battle.OccupyAltar, g);
            }

            Timer.DelayCall(TimeSpan.FromSeconds(2), DoFireworks);
            IsActive = false;

            if (OccupationTimer != null)
            {
                OccupationTimer = null;
            }

            if (CheckTimer != null)
            {
                CheckTimer.Stop();
                CheckTimer = null;
            }

            Timer.DelayCall(TimeSpan.FromMinutes(2), () =>
            {
                Torches.ForEach(t => t.Delete());
                Torches.Clear();
            });
        }
Пример #2
0
        private void Clear()
        {
            OccupationTimer.Stop();
            OccupationTimer = null;

            Torches.ForEach(t => t.Delete());
            Torches.Clear();
        }
Пример #3
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);
            writer.Write(0);

            writer.Write(IsActive);

            writer.Write(Braziers.Count);
            Braziers.ForEach(b => writer.Write(b));

            writer.Write(Torches.Count);
            Torches.ForEach(t => writer.Write(t));
        }
Пример #4
0
        public override void Delete()
        {
            base.Delete();

            Torches.ForEach(t => t.Delete());

            if (OccupationTimer != null)
            {
                OccupationTimer.Stop();
                OccupationTimer = null;
            }

            if (CheckTimer != null)
            {
                CheckTimer.Stop();
                CheckTimer = null;
            }
        }
Пример #5
0
        public override void Delete()
        {
            base.Delete();

            Torches.ForEach(t => t.Delete());
        }