public override void Deserialize(GenericReader reader) { base.Deserialize(reader); currentGate = (UltimaMoongate_Frame)reader.ReadItem(); // If opentime is non-zero, assume this was a summoned gate and delete it. // If summoned by an UltimaMoongate by the moon phase, it'll re-create it when it loads. // If summoned by spell or GM, it was intended to be temporary anyways. if (OpenTime > 0) { this.Delete(); } // If zero, it was supposed to be open forever. Raise the gate! else { gateTimer = new TransitionTimer(this); gateTimer.Start(); } }
public override void initGate() { Name = "Manager for an Ultima IV-style moongate."; gateTimer = new TransitionTimer(this); gateTimer.Start(); }