Skip to content
Joseph Korinek edited this page May 22, 2015 · 2 revisions

Home || Prev || Next

ICLSVessel

public interface ICLSVessel
{
    List<ICLSSpace> Spaces { get; }
    List<ICLSPart> Parts { get; }
    void Highlight(bool arg);
}

This Class provides 2 List properties and one method.

Propertiees

  • Spaces This property provides a list of ICLSSpace objects. Spaces are defined as contiguous groups of parts that share a connection (via attachment or dock) and are considered passable.
  • Parts This property provides a list of all ICLSParts that belong to any space on the active vessel. Note this is NOT a complete list of all parts on a vessel, only those that are considered passable.

Methods

  • Highlight This method provides a means to enable or disable highlighting of all ICLSParts in a provided vessel 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.