Class PrefabExtensionInsertPatch.PrefabExtensionSingleContentAttribute
- Namespace
- Bannerlord.UIExtenderEx.Prefabs2
- Assembly
- Bannerlord.UIExtenderEx.dll
protected abstract class PrefabExtensionInsertPatch.PrefabExtensionSingleContentAttribute : PrefabExtensionInsertPatch.PrefabExtensionContentAttribute
- Inheritance
-
PrefabExtensionInsertPatch.PrefabExtensionSingleContentAttribute
- Derived
- Inherited Members
Constructors
PrefabExtensionSingleContentAttribute(bool)
Used on a single Property or Method in PrefabExtensionInsertPatch to flag it as containing the patch information.
Supported Types:
- stringRepresents either the name of a file (use PrefabExtensionInsertPatch.PrefabExtensionFileNameAttribute), or xml (use PrefabExtensionInsertPatch.PrefabExtensionTextAttribute).
- XmlDocumentUse PrefabExtensionInsertPatch.PrefabExtensionXmlDocumentAttribute. The root node of the document and all of its children will be inserted at the target location.
- XmlNodeUse PrefabExtensionInsertPatch.PrefabExtensionXmlNodeAttribute. The node and all of its children will be inserted at the target location.
- IEnumerable<T> of type XmlNodeUse PrefabExtensionInsertPatch.PrefabExtensionXmlNodesAttribute. Nodes will be inserted in the same order that they appear in this list at the target location.
protected PrefabExtensionSingleContentAttribute(bool removeRootNode)
Parameters
removeRootNode
boolIf set to true, the root node of will be removed.
This is useful when you wish to insert multiple nodes at the same level (as siblings) from a single patch.
Properties
RemoveRootNode
If set to true, the root node of Content will be removed.
This is useful when you wish to insert multiple nodes at the same level (as siblings) from a single patch.
public bool RemoveRootNode { get; }