public void Complete(Guild g) { if (g != null) { Timer.DelayCall <Guild>(TimeSpan.FromSeconds(5), Battle.OccupyAltar, g); } Timer.DelayCall(TimeSpan.FromSeconds(2), DoFireworks); IsActive = false; if (OccupationTimer != null) { OccupationTimer = null; } if (CheckTimer != null) { CheckTimer.Stop(); CheckTimer = null; } Timer.DelayCall(TimeSpan.FromMinutes(2), () => { Torches.ForEach(t => t.Delete()); Torches.Clear(); }); }
private void Clear() { OccupationTimer.Stop(); OccupationTimer = null; Torches.ForEach(t => t.Delete()); Torches.Clear(); }
public override void Serialize(GenericWriter writer) { base.Serialize(writer); writer.Write(0); writer.Write(IsActive); writer.Write(Braziers.Count); Braziers.ForEach(b => writer.Write(b)); writer.Write(Torches.Count); Torches.ForEach(t => writer.Write(t)); }
public override void Delete() { base.Delete(); Torches.ForEach(t => t.Delete()); if (OccupationTimer != null) { OccupationTimer.Stop(); OccupationTimer = null; } if (CheckTimer != null) { CheckTimer.Stop(); CheckTimer = null; } }
public override void Delete() { base.Delete(); Torches.ForEach(t => t.Delete()); }