Click or drag to resize

PartNodePatcherTestPatch Method

Tests if the patch can be applied to the part node.

Namespace:  KSPDev.ConfigUtils
Assembly:  KSPDev_Utils.1.2 (in KSPDev_Utils.1.2.dll) Version: 1.2 for KSP v1.6+
Syntax
C#
public static bool TestPatch(
	ConfigNode partNode,
	ConfigNodePatch patch,
	LoadContext loadContext,
	bool quietMode = false
)
Request Example View Source

Parameters

partNode
Type: (Default Namespace)ConfigNode
The part node to test against.
patch
Type: KSPDev.ConfigUtilsConfigNodePatch
The patch to test.
loadContext
Type: SaveUpgradePipelineLoadContext
The conext in whcih the part is being patched.
quietMode (Optional)
Type: SystemBoolean
Tells if anything should be reported to the logs.

Return Value

Type: Boolean
true if the TEST rules of the patch have matched.
See Also