Modding:Adding Block Behavior/ru: Difference between revisions

From Vintage Story Wiki
(Created page with "== Разбор свойств ==")
(Created page with "Чтобы позаботиться о специальных свойствах, существует метод <code> Initialize (JsonObject) </code>. Каждый тип...")
Line 112: Line 112:
== Разбор свойств ==
== Разбор свойств ==


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.
Чтобы позаботиться о специальных свойствах, существует метод <code> Initialize (JsonObject) </code>. Каждый тип блока создает новый экземпляр поведения, поэтому метод может использоваться для анализа свойств.


So what kind of properties could we add?
So what kind of properties could we add?