private Crewable(Part part, PartCrewManifest manifest, int capacity) { this.part = part; this.manifest = manifest; Capacity = capacity; crewSlots = CrewSlot.GetSlots(part, manifest); }
/// <summary> /// Clears all crew out of the crewable. /// </summary> public void Clear() { for (int index = 0; index < Capacity; ++index) { manifest.RemoveCrewFromSeat(index); } crewSlots = CrewSlot.GetSlots(part, manifest); }