Modding:TreeAttribute/ru: Difference between revisions

From Vintage Story Wiki
(Created page with "Моддинг:Дерево атрибутов")
 
(Created page with "TreeAttribute — это вложенная структура данных, основной целью которой является хранение данных. Он м...")
Line 1: Line 1:
{{GameVersion|1.15}}
{{GameVersion|1.15}}
<languages/>A TreeAttribute is a nested data structure whose primary purpose is to store data. It can hold generic data for most primitives, such as int, string, float, as well as more complex types like ItemStacks and other TreeAttributes (hence a nested structure).  
<languages/>TreeAttribute — это вложенная структура данных, основной целью которой является хранение данных. Он может содержать общие данные для большинства примитивов, таких как int, string, float, а также для более сложных типов, таких как ItemStacks и другие TreeAttributes (отсюда и вложенная структура).  


Additionally you can store data as <code>byte[]</code> if it is not supported by the TreeAttribute itself (for this you could use <code>Vintagestory.API.Util.SerializerUtil</code>).
Additionally you can store data as <code>byte[]</code> if it is not supported by the TreeAttribute itself (for this you could use <code>Vintagestory.API.Util.SerializerUtil</code>).