PatchOperationInsert - solaris0115/RimWorldModGuide GitHub Wiki

PatchOperationInsert

데이터를 추가하는 작업입니다.
지정된 경로 바로 다음에 삽입합니다.
기본적으로 Add와 원리는 같습니다.

<ExampleDef>
	<defName>Example</defName>
	<exampleNode>Some text</exampleNode>
	<exampleList />
</ExampleDef>

<Operation Class="PatchOperationInsert">
	<xpath>*/ExampleDef[defName="Example"]/exampleNode</xpath>
	<value>
		<anotherExample>A new sibling</anotherExample>
	</value>
</Operation>

결과

<ExampleDef>
	<defName>Example</defName>
	<exampleNode>Some text</exampleNode>
	<anotherExample>A new sibling</anotherExample>
	<exampleList />
</ExampleDef>

주의사항

Add 명령과 마찬가지로 부모노드의 데이터를 고려하여 작성해야 합니다.

⚠️ **GitHub.com Fallback** ⚠️