Пример #1
0
 public PrepareCarefully()
 {
     implantManager = new ImplantManager();
     NameSortOrder  = SortOrder.Ascending;
     CostSortOrder  = SortOrder.Ascending;
     SortField      = SortField.Name;
 }
        protected void ResetBodyPartEnabledState(IEnumerable <BodyPartRecord> parts, CustomPawn pawn)
        {
            disabledBodyParts.Clear();
            ImplantManager implantManager = PrepareCarefully.Instance.HealthManager.ImplantManager;

            foreach (var part in parts)
            {
                if (pawn.IsImplantedPart(part) || implantManager.AncestorIsImplant(pawn, part))
                {
                    disabledBodyParts.Add(part);
                }
            }
        }
Пример #3
0
 public HealthManager()
 {
     implantManager = new ImplantManager();
     injuryManager  = new InjuryManager();
 }
Пример #4
0
 public HealthManager()
 {
     implantManager = new ImplantManager();
     injuryManager  = new InjuryManager();
     InitializeBodyParts();
 }