Exemple #1
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!");
            }
        }
        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!");
        }