public override void PreClose()
 {
     base.PreClose();
     RestrictManager.CleanDeadMaps();
     RestrictManager.CleanDeadColonists(this.Pawns.ToList());
     RestrictManager.SaveCurrentState(this.Pawns.ToList());
 }
Exemplo n.º 2
0
        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());
        }