public override void PreClose() { base.PreClose(); RestrictManager.CleanDeadMaps(); RestrictManager.CleanDeadColonists(this.Pawns.ToList()); RestrictManager.SaveCurrentState(this.Pawns.ToList()); }
public override void PreOpen() { base.PreOpen(); RestrictManager.CleanDeadMaps(); RestrictManager.UpdateState( RestrictManager.links, this.Pawns.ToList(), RestrictManager.GetActivePolicy()); RestrictManager.LoadState( RestrictManager.links, this.Pawns.ToList(), RestrictManager.GetActivePolicy()); RestrictManager.CleanDeadColonists(this.Pawns.ToList()); }