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

Home || Prev || Next

ICLSAddon

public interface ICLSAddon
{
    ICLSVessel Vessel { get; }
}

This interface provides the complete active vessel as a CLS Object. The Vessel property returns an ICLSVessel object that wraps vessel class, providing additional objects to support the features in CLS.

This object is refreshed under the following conditions:

  • onVesselLoaded event fires. Since this event fires for every vessel that comes into range in the flight scene, a filter is in place to ensure that only the active vessel is used to refresh the contents of this object.
  • onVesselChanged event fires. This event fires when the active vessel changes, or when other mods fire the event. It is commonly used for notification of changes to vessels in various mods
  • onVesselModified event fires. This event handles things like docking, undocking, part separation, crew changes, etc.