Modding:Adding Block Behavior/ru: Difference between revisions

From Vintage Story Wiki
Created page with "== Регистрация =="
(Created page with "// Сообщите игровому движку и другим моделям поведения блоков, что мы обработали взаимодействие игрока с блоком. // Если бы мы не задали поле обработки, игрок все равно смог бы ставить блоки, если бы они были у него в руках.")
(Created page with "== Регистрация ==")
Line 61: Line 61:
</syntaxhighlight>
</syntaxhighlight>


== Register ==  
== Регистрация ==  


In order the register the BlockBehavior we need to create a mod class, override <code>Start(ICoreAPI)</code> and register it with the given name:
In order the register the BlockBehavior we need to create a mod class, override <code>Start(ICoreAPI)</code> and register it with the given name:
Confirmedusers
409

edits