Modding:TreeAttribute: Difference between revisions

From Vintage Story Wiki
m
(Simple example of TreeAttribute)
 
Line 6: Line 6:
== Use in API ==
== Use in API ==
Within the API, TreeAttribute is often employed to store persistent entity data, and to store data extracted from JSON files.<br>
Within the API, TreeAttribute is often employed to store persistent entity data, and to store data extracted from JSON files.<br>
'''TreeAttribute''' is often available as the interface '''ITreeAttribute'''.<br>
'''TreeAttribute''' is often supplied as the interface '''ITreeAttribute'''.<br>
== Example in code ==  
== Example in code ==  
<syntaxhighlight lang="c#">
<syntaxhighlight lang="c#">