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

Static Public Member Functions

static bool CanPlace (int x, int y, int type, int style, int dir, out TileObject objectData, bool onlyCheck=false, int? forcedRandom=null, bool checkStay=false)
 
static void DrawPreview (SpriteBatch sb, TileObjectPreviewData op, Vector2 position)
 
static bool Place (TileObject toBePlaced)
 

Public Attributes

int alternate
 Note: The index of the alternate within the TileObjectData.Alternates, not the alternate placement style offset (TileObjectData.Style)
 
int random
 
int style
 
int type
 
int xCoord
 
int yCoord
 

Static Public Attributes

static TileObject Empty = default(TileObject)
 
static TileObjectPreviewData objectPreview = new TileObjectPreviewData()