Modding:Adding Block Behavior/ru: Difference between revisions

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


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


# Calculate the new position of the block depending on the face the player is looking at
# Calculate the new position of the block depending on the face the player is looking at
681

edits