Modding:Adding Block Behavior/ru: Difference between revisions

From Vintage Story Wiki
Created page with "Что метод должен делать?"
(Created page with "Метод <code>bool OnBlockInteractStart(IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSel, ref EnumHandling handling)</code> выглядит идеально подходящим для нашей цели.")
(Created page with "Что метод должен делать?")
Tags: Mobile edit Mobile web edit
Line 34: Line 34:
Метод <code>bool OnBlockInteractStart(IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSel, ref EnumHandling handling)</code> выглядит идеально подходящим для нашей цели.
Метод <code>bool OnBlockInteractStart(IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSel, ref EnumHandling handling)</code> выглядит идеально подходящим для нашей цели.


What should it do?
Что метод должен делать?


# Calculate the new position to move the block to, based on the block face the player is looking at.
# Calculate the new position to move the block to, based on the block face the player is looking at.
Confirmedusers
409

edits