Click or drag to resize

PartNodePatcherTestPatch Method

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

Namespace:  KSPDev.ConfigUtils
Assembly:  KSPDev_Utils.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
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 context in which 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