PartNodePatcherTestPatch Method |
Tests if the patch can be applied to the part node.
Namespace:
KSPDev.ConfigUtils
Assembly:
KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntaxpublic static bool TestPatch(
ConfigNode partNode,
ConfigNodePatch patch,
LoadContext loadContext,
bool quietMode = false
)
Request Example
View SourceParameters
- 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:
Booleantrue if the TEST rules of the patch have matched.
See Also