public Notes_Archive_Container(Guid gid, string name, double time, double m, VesselType t)
 {
     id = gid;
     vesselName = name;
     recoveryTime = time;
     met = m;
     vtype = t;
     container = this;
     log = new Notes_VesselLog(container);
     notes = new Notes_TextContainer(container);
     checkList = new Notes_CheckListContainer(container);
     contracts = new Notes_ContractContainer(container);
     data = new Notes_DataContainer(container);
     crew = new Notes_Archived_Crew_Container(container);
 }
 public Notes_Archived_Crew_Container(Notes_Archived_Crew_Container copy, Notes_Archive_Container n)
 {
     allCrew = copy.allCrew;
     archive_Root = n;
     vessel = null;
 }
 public Notes_CrewObject(ProtoCrewMember c, Notes_Archived_Crew_Container r)
 {
     crew = c;
     root = null;
     archive_Root = r;
     profIcon = assignPIcon(crew.experienceTrait);
     levelIcon = assignLIcon(crew.experienceLevel);
 }
        private void saveCrew(ConfigNode node, Notes_Archived_Crew_Container c)
        {
            ConfigNode crew = new ConfigNode("ARCHIVED_CREW");

            for (int i = 0; i < c.getCrewCount; i++)
            {
                Notes_CrewObject o = c.getCrewNotes(i);

                if (o == null)
                    continue;

                crew.AddValue("KERBAL", o.Crew.name);
            }

            node.AddNode(crew);
        }
        private Notes_Archived_Crew_Container loadCrew(ConfigNode node)
        {
            Notes_Archived_Crew_Container c = new Notes_Archived_Crew_Container();

            for (int i = 0; i < node.GetValues("KERBAL").Length; i++)
            {
                string k = node.GetValues("KERBAL")[i];

                if (string.IsNullOrEmpty(k))
                    continue;

                if (HighLogic.CurrentGame.CrewRoster == null)
                    break;

                ProtoCrewMember p = HighLogic.CurrentGame.CrewRoster[k];

                if (p == null)
                    continue;

                c.addCrewObject(p);
            }

            return c;
        }
 public void loadCrewNotes(Notes_Archived_Crew_Container c)
 {
     crew = new Notes_Archived_Crew_Container(c, this);
 }