public override void ApplyEffectKind(Architecture a, Event e) { while (a.Facilities.Count > 0) { a.DemolishFacility(a.Facilities[0] as Facility); } }
public override void ApplyEffectKind(Architecture a, Event e) { foreach (Facility f in a.Facilities) { if (f.KindID == id) { a.DemolishFacility(f); return; } } }