Exemplo n.º 1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            Instance = this;

            RockBarrier  = reader.ReadItem() as BaseAddon;
            TimeWarpEnds = reader.ReadDateTime();

            if (TimeWarpEnds != DateTime.MinValue)
            {
                if (TimeWarpEnds > DateTime.UtcNow)
                {
                    Timer = Timer.DelayCall(TimeSpan.FromMinutes(1), TimeSpan.FromMinutes(1), OnTick);
                }
                else
                {
                    Timer.DelayCall(TimeSpan.FromSeconds(60), Cleanup);
                }
            }

            if (RockBarrier == null)
            {
                RockBarrier = new KotlWallAddon();
                RockBarrier.MoveToWorld(RockBarrierLocation, Map.TerMur);
            }
        }
Exemplo n.º 2
0
        }                                                           // Wheels of Time

        public WheelsOfTime()
            : base(0x9CEF)
        {
            Hue     = 2655;
            Movable = false;

            RockBarrier = new KotlWallAddon();
            RockBarrier.MoveToWorld(RockBarrierLocation, Map.TerMur);

            TimeWarpEnds = DateTime.MinValue;
        }