Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.ObjectData.TileObjectData Class Reference

Public Member Functions

 TileObjectData (TileObjectData copyFrom=null)
 
void CopyFrom (TileObjectData copy)
 
void FullCopyFrom (ushort tileType)
 
void FullCopyFrom (TileObjectData copy)
 
bool LiquidPlace (Tile checkTile)
 
bool isValidTileAnchor (int type)
 
bool isValidWallAnchor (int type)
 
bool isValidAlternateAnchor (int type)
 
int CalculatePlacementStyle (int style, int alternate, int random)
 

Static Public Member Functions

static void Initialize ()
 
static bool CustomPlace (int type, int style)
 
static bool CheckLiquidPlacement (int type, int style, Tile checkTile)
 
static bool LiquidPlace (int type, Tile checkTile)
 
static bool CheckWaterDeath (int type, int style)
 
static bool CheckWaterDeath (Tile checkTile)
 
static bool CheckLavaDeath (int type, int style)
 
static bool CheckLavaDeath (Tile checkTile)
 
static int PlatformFrameWidth ()
 
static TileObjectData GetTileData (int type, int style, int alternate=0)
 
static TileObjectData GetTileData (Tile getTile)
 
static void SyncObjectPlacement (int tileX, int tileY, int type, int style, int dir)
 
static bool CallPostPlacementPlayerHook (int tileX, int tileY, int type, int style, int dir, int alternate, TileObject data)
 
static void OriginToTopLeft (int type, int style, ref Point16 baseCoords)
 

Properties

bool LinkedAlternates [get, set]
 
bool UsesCustomCanPlace [get, set]
 
List< TileObjectDataAlternates [get, set]
 
AnchorData AnchorTop [get, set]
 
AnchorData AnchorBottom [get, set]
 
AnchorData AnchorLeft [get, set]
 
AnchorData AnchorRight [get, set]
 
bool AnchorWall [get, set]
 
int[] AnchorValidTiles [get, set]
 
int[] AnchorInvalidTiles [get, set]
 
int[] AnchorAlternateTiles [get, set]
 
int[] AnchorValidWalls [get, set]
 
bool WaterDeath [get, set]
 
bool LavaDeath [get, set]
 
LiquidPlacement WaterPlacement [get, set]
 
LiquidPlacement LavaPlacement [get, set]
 
PlacementHook HookCheckIfCanPlace [get, set]
 
PlacementHook HookPostPlaceEveryone [get, set]
 
PlacementHook HookPostPlaceMyPlayer [get, set]
 
PlacementHook HookPlaceOverride [get, set]
 
List< TileObjectDataSubTiles [get, set]
 
int DrawYOffset [get, set]
 
int DrawXOffset [get, set]
 
bool DrawFlipHorizontal [get, set]
 
bool DrawFlipVertical [get, set]
 
int DrawStepDown [get, set]
 
bool StyleHorizontal [get, set]
 
int Style [get, set]
 
int StyleWrapLimit [get, set]
 
int? StyleWrapLimitVisualOverride [get, set]
 
int? styleLineSkipVisualOverride [get, set]
 
int StyleLineSkip [get, set]
 
int StyleMultiplier [get, set]
 
int Width [get, set]
 
int Height [get, set]
 
Point16 Origin [get, set]
 
TileObjectDirection Direction [get, set]
 
int RandomStyleRange [get, set]
 
int[] SpecificRandomStyles [get, set]
 
bool FlattenAnchors [get, set]
 
int[] CoordinateHeights [get, set]
 
int CoordinateWidth [get, set]
 
int CoordinatePadding [get, set]
 
Point16 CoordinatePaddingFix [get, set]
 
int CoordinateFullWidth [get]
 
int CoordinateFullHeight [get]
 
int DrawStyleOffset [get, set]
 
int AlternatesCount [get]
 

Private Member Functions

void SetupBaseObject ()
 
void Calculate ()
 
void WriteCheck ()
 
void LockWrites ()
 

Static Private Member Functions

static void addBaseTile (out TileObjectData baseTile)
 
static void addTile (int tileType)
 
static void addSubTile (params int[] styles)
 
static void addSubTile (int style)
 
static void addAlternate (int baseStyle)
 

Private Attributes

TileObjectData _parent
 
bool _linkedAlternates
 
bool _usesCustomCanPlace
 
TileObjectAlternatesModule _alternates
 
AnchorDataModule _anchor
 
AnchorTypesModule _anchorTiles
 
LiquidDeathModule _liquidDeath
 
LiquidPlacementModule _liquidPlacement
 
TilePlacementHooksModule _placementHooks
 
TileObjectSubTilesModule _subTiles
 
TileObjectDrawModule _tileObjectDraw
 
TileObjectStyleModule _tileObjectStyle
 
TileObjectBaseModule _tileObjectBase
 
TileObjectCoordinatesModule _tileObjectCoords
 
bool _hasOwnAlternates
 
bool _hasOwnAnchor
 
bool _hasOwnAnchorTiles
 
bool _hasOwnLiquidDeath
 
bool _hasOwnLiquidPlacement
 
bool _hasOwnPlacementHooks
 
bool _hasOwnSubTiles
 
bool _hasOwnTileObjectBase
 
bool _hasOwnTileObjectDraw
 
bool _hasOwnTileObjectStyle
 
bool _hasOwnTileObjectCoords
 

Static Private Attributes

static List< TileObjectData_data
 
static TileObjectData _baseObject
 
static bool readOnlyData
 
static TileObjectData newTile
 
static TileObjectData newSubTile
 
static TileObjectData newAlternate
 
static TileObjectData StyleSwitch
 
static TileObjectData StyleTorch
 
static TileObjectData Style4x2
 
static TileObjectData Style2x2
 
static TileObjectData Style1x2
 
static TileObjectData Style1x1
 
static TileObjectData StyleAlch
 
static TileObjectData StyleDye
 
static TileObjectData Style2x1
 
static TileObjectData Style6x3
 
static TileObjectData StyleSmallCage
 
static TileObjectData StyleOnTable1x1
 
static TileObjectData Style1x2Top
 
static TileObjectData Style1xX
 
static TileObjectData Style2xX
 
static TileObjectData Style3x2
 
static TileObjectData Style3x3
 
static TileObjectData Style3x4
 
static TileObjectData Style5x4
 
static TileObjectData Style3x3Wall
 

Detailed Description

Definition at line 11 of file TileObjectData.cs.


The documentation for this class was generated from the following file: