Click or drag to resize

ConfigNodePatch Class

Class that describes how to modify a part's config node.
Inheritance Hierarchy
SystemObject
  KSPDev.ConfigUtilsConfigNodePatch

Namespace:  KSPDev.ConfigUtils
Assembly:  KSPDev_Utils.1.2 (in KSPDev_Utils.1.2.dll) Version: 1.2 for KSP v1.6+
Syntax
C#
public class ConfigNodePatch
Request Example View Source

The ConfigNodePatch type exposes the following members.

Constructors
  NameDescription
Public methodConfigNodePatch
Initializes a new instance of the ConfigNodePatch class
Top
Methods
  NameDescription
Public methodStatic memberMakeFromConfig
Makes a patch form the config.
Public methodStatic memberMakeFromConfigNode
Makes a patch form the config node.
Public methodToString
Returns friendly identificator of the patch.
(Overrides ObjectToString.)
Top
Fields
  NameDescription
Public fieldloadContext
Context in which this patch should be applied.
Public fieldmodName
Name of the mod's assembly which owns the part being patched.
Public fieldname
Name of the patch. It must be unique in the game's scope.
Public fieldpatchCreationTimestamp
Unix Epoch timesmap of when the patch was created.
Public fieldtestSection
Section that defines rules for the part to qualify for patching.
Public fieldupgradeSection
Section that defines how to change the part if it qualifies for patching.
Public fieldverboseLogging
Tells if all patch processing job must be logged.
Top
Remarks
IMPORTANT! Every patch must be designed so that if it matched to a part and was applied to, it won't match to the same patched part again. If this condition doesn't stand, then the engine will disable the patch.
See Also