-
Notifications
You must be signed in to change notification settings - Fork 36
2.2.3 ICLSSpace
ICLSSpace
public interface ICLSSpace
{
List<ICLSPart> Parts {get;}
int MaxCrew {get;}
String Name {get;set;}
ICLSVessel Vessel {get;}
List<ICLSKerbal> Crew {get;}
void Highlight(bool val);
}
This object is a new construct that creates a relationship between multiple parts into a group called a space. These parts are all connected in a way that makes them passable with each other. For example, a house has several rooms, but all rooms are considered one living space, as long as all doors are open. Close a door and that room is now a separate living space.
Properties
-
Parts Read Only. This property returns a list of ICLSParts that are connected in a ways that makes them passable with eachother.
-
MaxCrew Read Only. This property returns the maximum number of Kerbals that can reside within the Space
-
Name This Property returns the name of the space. It defaults to the root part of the parts that comprise the space. This value can be altered.
-
Vessel Read Only. Returns the parent ICLSVessel to which the ICLSSpace belongs.
-
Crew Read Only. Returns a list of ICLSKerbals that are contained in all parts contained in the ICLSSpace Methods
-
Highlight This method provides a means to enable or disable highlighting of a provided space object. This does not allow changing the highlight color, as the color is determined by other factors, such as passibility, part type, etc. Passing a Boolean value of true enables highlighting. Passing a bool false disable highlighting. This method need only be fire once, as it will set a flag on the associated parts to ensure the part stays highlighted until commanded to turn off.