Modding:Adding Block Behavior/es: Difference between revisions

From Vintage Story Wiki
Created page with "== Propiedades de análisis =="
(Created page with "<syntaxhighlight lang="json"> behaviors: [ { name: "FiniteSpreadingLiquid", properties: { spreadDelay: 150, liquidCollisionSound: "hotmetal", sourceReplacementCode: "obsidian", flowingReplacementCode: "basalt" } } ], </syntaxhighlight>")
(Created page with "== Propiedades de análisis ==")
Line 110: Line 110:
</syntaxhighlight>
</syntaxhighlight>


== Parsing properties ==
== Propiedades de análisis ==


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.
Confirmedusers
9,523

edits