TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ ModifySmartInteractCoords()

virtual void Terraria.ModLoader.ModTile.ModifySmartInteractCoords ( ref int width,
ref int height,
ref int frameWidth,
ref int frameHeight,
ref int extraY )
inlinevirtualinherited

Allows you to modify the smart interact parameters for the tile. Parameters already preset by deriving from TileObjectData defined for the tile.
Example usage: Beds/Dressers which have separate interactions based on where to click.

Parameters
widthAmount of tiles in x direction for which the smart interact should select for
heightAmount of tiles in y direction for which the smart interact should select for
frameWidthWidth of each tile, in pixels
frameHeightHeight of each tile, in pixels
extraYAdditional offset applied after calculations with frameHeight, in pixels

Definition at line 185 of file ModTile.cs.

186 {
187 }