tModLoader v2024.09
A mod to make and play Terraria mods
AnchorData Struct Reference

Public Member Functions

 AnchorData (AnchorType type, int count, int start)
 Defines an anchor, meaning the surrounding tiles required for a multitile to be placeable at a location. type dictates which types of tiles are eligible for the anchor while start and count dictate how much of the multitile edge need to have that specific anchor. For example, most furniture tiles will simply set a bottom anchor spanning the full width of the tile requiring solid tiles:
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0); type can be defined using multiple options with the logical OR operator (|) to combine AnchorType values, allowing tiles satisfying any of the AnchorTypes to work:
AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide The Anchor section of the Basic Tile wiki guidehas more information and visualizations.
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static bool operator!= (AnchorData data1, AnchorData data2)
 
static bool operator== (AnchorData data1, AnchorData data2)
 

Public Attributes

int checkStart
 
int tileCount
 
AnchorType type
 

Static Public Attributes

static AnchorData Empty