/// <summary> /// Here when the player manually changes the crew assignments in the editor. /// </summary> /// <param name="construct"></param> private void OnCrewChanged(ShipConstruct construct) { if (Crewable.CanList(construct)) { Logging.Log("Crew edited, persisting kerbal assignments."); AssignmentLogic.PersistKerbalAssignments(construct); LogVesselManifest(); } }
/// <summary> /// Here when exiting the crew panel. /// </summary> /// <param name="construct"></param> private void OnExitCrewPanel(ShipConstruct construct) { try { Logging.Log("Leaving crew screen, persisting kerbal assignments."); AssignmentLogic.PersistKerbalAssignments(CurrentShipConstruct); LogVesselManifest(); } catch (Exception e) { Logging.Exception(e); } }