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