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

◆ ModifySmartInteractCoords()

static void Terraria.ModLoader.TileLoader.ModifySmartInteractCoords ( int type,
ref int width,
ref int height,
ref int frameWidth,
ref int frameHeight,
ref int extraY )
inlinestatic

Definition at line 471 of file TileLoader.cs.

472 {
473 ModTile modTile = GetTile(type);
474 if (modTile != null)
475 {
477 if (data != null)
478 {
479 width = data.Width;
480 height = data.Height;
481 frameWidth = data.CoordinateWidth + data.CoordinatePadding;
483 extraY = data.CoordinateFullHeight % frameHeight;
484 modTile.ModifySmartInteractCoords(ref width, ref height, ref frameWidth, ref frameHeight, ref extraY);
485 }
486 }
487 }
static ModTile GetTile(int type)
Gets the ModTile instance with the given type. If no ModTile with the given type exists,...
static TileObjectData GetTileData(int type, int style, int alternate=0)

References Terraria.ObjectData.TileObjectData.CoordinateHeights, Terraria.ObjectData.TileObjectData.CoordinatePadding, Terraria.ModLoader.TileLoader.GetTile(), Terraria.ObjectData.TileObjectData.GetTileData(), Terraria.ObjectData.TileObjectData.Height, and Terraria.ObjectData.TileObjectData.Width.

Referenced by Terraria.GameContent.ObjectInteractions.TileSmartInteractCandidateProvider.ProvideCandidate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: