Click or drag to resize

IKSPActivateOnDecouple Interface

A documented version of the IActivateOnDecouple interface.

Namespace:  KSPDev.KSPInterfaces
Assembly:  KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntax
C#
public interface IKSPActivateOnDecouple
Request Example View Source

The IKSPActivateOnDecouple type exposes the following members.

Methods
  NameDescription
Public methodDecoupleAction
Called when two parts decouple.
Top
Remarks
Inherit from IActivateOnDecouple to be able reacting on the parts decoupling. This interface is a full equivalent of IActivateOnDecouple except it's documented. The modules that inherit both interfaces get better code documentation.
Examples
public class MyModule : PartModule, IActivateOnDecouple, IKSPActivateOnDecouple {
  /// <inheritdoc/>
  public virtual void DecoupleAction(string nodeName, bool weDecouple) {
    Debug.LogInfo("DecoupleAction");
  }
}
See Also