Modding:Adding Block Behavior/ru: Difference between revisions
From Vintage Story Wiki
Akellagray (talk | contribs) (Created page with "Поведение жидкости поддерживает некоторые специальные свойства, как показано в этом примере т...") |
Akellagray (talk | contribs) (Created page with "== Разбор свойств ==") |
||
Line 110: | Line 110: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== | == Разбор свойств == | ||
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. |