Esempio n. 1
0
 public WinchAssemblyLever(WinchAssembly winch, Hatch hatch)
     : base(0x108E)
 {
     Movable         = false;
     m_WinchAssembly = winch;
     m_hatch         = hatch;
 }
Esempio n. 2
0
        public static void GenWinchAssembly(Mobile m)
        {
            DeleteWinchAssembly();

            // Winch
            WinchAssembly winch = new WinchAssembly();

            WeakEntityCollection.Add(EntityName, winch);

            Hatch hatch = new Hatch(winch);

            WeakEntityCollection.Add(EntityName, hatch);

            WinchAssemblyLever lever = new WinchAssemblyLever(winch, hatch);

            WeakEntityCollection.Add(EntityName, lever);

            lever.MoveToWorld(new Point3D(6310, 1705, 0), Map.Trammel);
            winch.MoveToWorld(new Point3D(6310, 1704, 0), Map.Trammel);
            hatch.MoveToWorld(new Point3D(6303, 1711, 10), Map.Trammel);

            var tele = new ExitTeleporter(winch);

            tele.MoveToWorld(new Point3D(6400, 1656, 0), Map.Trammel);
            WeakEntityCollection.Add(EntityName, tele);

            if (m != null)
            {
                m.SendMessage("Winch Assembly Generation completed!");
            }
            else
            {
                Console.WriteLine("Winch Assembly Generation completed!");
            }
        }
Esempio n. 3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            m_WinchAssembly = reader.ReadItem() as WinchAssembly;
            m_hatch         = reader.ReadItem() as Hatch;
        }
Esempio n. 4
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            reader.ReadInt();

            Winch = reader.ReadItem() as WinchAssembly;
            Hatch = reader.ReadItem() as Hatch;
        }
Esempio n. 5
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            reader.ReadInt();

            Hatch = reader.ReadItem <Hatch>();

            if (Hatch != null)
            {
                Hatch.Winch = this;
            }
        }
Esempio n. 6
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            Winch = reader.ReadItem() as WinchAssembly;
            Hatch = reader.ReadItem() as Hatch;

            if (version == 0 && Winch != null)
            {
                Winch.Hatch = Hatch;
            }
        }
Esempio n. 7
0
        public static void GenWinchAssembly(Mobile m)
        {
            DeleteWinchAssembly(m);

            // Winch
            WinchAssembly      winch = new WinchAssembly();
            Hatch              hatch = new Hatch();
            WinchAssemblyLever lever = new WinchAssemblyLever(winch, hatch);

            lever.MoveToWorld(new Point3D(6310, 1705, 0), Map.Trammel);
            winch.MoveToWorld(new Point3D(6310, 1704, 0), Map.Trammel);
            hatch.MoveToWorld(new Point3D(6303, 1711, 10), Map.Trammel);

            m.SendMessage("Generation completed!");
        }
Esempio n. 8
0
 public HatchTile(Hatch hatch)
     : base(0x07CD)
 {
     Hue = 2969;
 }
Esempio n. 9
0
 public InternalTimer(Hatch hatch) : base(TimeSpan.FromMinutes(30.0))
 {
     Priority = TimerPriority.OneSecond;
     m_hatch  = hatch;
 }