Example #1
0
            public KCT_BuildListVessel ToBuildListVessel()
            {
                KCT_BuildListVessel ret = new KCT_BuildListVessel(shipName, launchSite, buildTime, flag, cost, EditorFacility);

                ret.progress = progress;
                if (InventoryParts != null)
                {
                    int ignore;
                    if (InventoryParts.Count > 1 && int.TryParse(InventoryParts[1], out ignore))
                    {
                        ret.InventoryParts = KCT_Utilities.PartListToDictAlternating(InventoryParts);
                    }
                    else
                    {
                        ret.InventoryParts = KCT_Utilities.PartListToDict(InventoryParts);
                    }
                }
                ret.id = new Guid(shipID);
                ret.cannotEarnScience = cannotEarnScience;
                ret.TotalMass         = mass;
                ret.DistanceFromKSC   = kscDistance;
                return(ret);
            }