public void Mature(Juvenile juvenile) { juveniles.Remove(juvenile.id); if (juvenile.isFemale) { var female = new Female(juvenile); females[female.id] = female; } else { var male = new Male(juvenile); males[male.id] = male; } }
public void AddKerbal(KerbalExt ext) { if (ProgenyScenario.current == null) { Debug.LogFormat("[ProgenyTracker] AddKerbal: delaying add"); AddLoadingKerbal(ext); return; } Debug.LogFormat("[ProgenyTracker] AddKerbal: adding kerbal"); Zygote kerbal; if (ext.kerbal.gender == ProtoCrewMember.Gender.Female) { kerbal = new Female(ext.kerbal); } else { kerbal = new Male(ext.kerbal); } kerbal_ids[ext.kerbal.name] = kerbal.id; ProgenyScenario.current.AddKerbal(kerbal); ext[name] = kerbal.id; CheckLocation(ext.kerbal); }