PartNodePatcher.TestPatch Method |
Tests if the patch can be applied to the part node.
Namespace:
KSPDev.ConfigUtils
Assembly:
KSPDev_Utils.2.6 (in KSPDev_Utils.2.6.dll) Version: 2.6 for KSP v1
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.ConfigUtils.ConfigNodePatch
The patch to test. - loadContext
- Type: SaveUpgradePipeline.LoadContext
The context in which the part is being patched. - quietMode (Optional)
- Type: System.Boolean
Tells if anything should be reported to the logs.
Return Value
Type:
Booleantrue if the TEST rules of the patch have matched.
See Also