Modding:Adding Block Behavior/ru: Difference between revisions

From Vintage Story Wiki
Created page with "== Разбор свойств =="
(Created page with "Поведение жидкости поддерживает некоторые специальные свойства, как показано в этом примере т...")
(Created page with "== Разбор свойств ==")
Line 110: Line 110:
</syntaxhighlight>
</syntaxhighlight>


== Parsing properties ==
== Разбор свойств ==


In order to take care of special properties there is a method called <code>Initialize(JsonObject)</code>. Each blocktype creates a new instance of the behavior, so the method can be used to parse the properties.
In order to take care of special properties there is a method called <code>Initialize(JsonObject)</code>. Each blocktype creates a new instance of the behavior, so the method can be used to parse the properties.
681

edits