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

◆ ModifySittingTargetInfo()

static void Terraria.ModLoader.TileLoader.ModifySittingTargetInfo ( int i,
int j,
int type,
ref TileRestingInfo info )
inlinestatic

Definition at line 489 of file TileLoader.cs.

490 {
491 ModTile modTile = GetTile(type);
492 if (modTile != null)
493 {
494 modTile.ModifySittingTargetInfo(i, j, ref info);
495 }
496 else
497 {
498 info.AnchorTilePosition.Y++;
499 }
500 }
static ModTile GetTile(int type)
Gets the ModTile instance with the given type. If no ModTile with the given type exists,...

References Terraria.ModLoader.TileLoader.GetTile().

Referenced by Terraria.NPC.AI_007_FindGoodRestingSpot(), Terraria.GameContent.PlayerSittingHelper.GetSittingTargetInfo(), and Terraria.NPC.SitDown().

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