public WinchAssemblyLever(WinchAssembly winch, Hatch hatch) : base(0x108E) { Movable = false; m_WinchAssembly = winch; m_hatch = hatch; }
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 override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); m_WinchAssembly = reader.ReadItem() as WinchAssembly; m_hatch = reader.ReadItem() as Hatch; }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); reader.ReadInt(); Winch = reader.ReadItem() as WinchAssembly; Hatch = reader.ReadItem() as Hatch; }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); reader.ReadInt(); Hatch = reader.ReadItem <Hatch>(); if (Hatch != null) { Hatch.Winch = this; } }
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; } }
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!"); }
public HatchTile(Hatch hatch) : base(0x07CD) { Hue = 2969; }
public InternalTimer(Hatch hatch) : base(TimeSpan.FromMinutes(30.0)) { Priority = TimerPriority.OneSecond; m_hatch = hatch; }