C# Class Terraria.TileObjectData

Afficher le fichier Open project: EmuDevs/EDTerraria Class Usage Examples

Private Properties

Свойство Type Description
Calculate void
SetupBaseObject void
WriteCheck void
addAlternate void
addBaseTile void
addSubTile void
addTile void

Méthodes publiques

Méthode Description
CalculatePlacementStyle ( int style, int alternate, int random ) : int
CallPostPlacementPlayerHook ( int tileX, int tileY, int type, int style, int dir, TileObject data ) : bool
CheckLavaDeath ( Tile checkTile ) : bool
CheckLavaDeath ( int type, int style ) : bool
CheckLiquidPlacement ( int type, int style, Tile checkTile ) : bool
CheckWaterDeath ( Tile checkTile ) : bool
CheckWaterDeath ( int type, int style ) : bool
CopyFrom ( TileObjectData copy ) : void
CustomPlace ( int type, int style ) : bool
FullCopyFrom ( TileObjectData copy ) : void
FullCopyFrom ( ushort tileType ) : void
GetTileData ( Tile getTile ) : TileObjectData
GetTileData ( int type, int style, int alternate ) : TileObjectData
Initialize ( ) : void
LiquidPlace ( Tile checkTile ) : bool
LiquidPlace ( int type, Tile checkTile ) : bool
OriginToTopLeft ( int type, int style, Point16 &baseCoords ) : void
PlatformFrameWidth ( ) : int
SyncObjectPlacement ( int tileX, int tileY, int type, int style, int dir ) : void
TileObjectData ( TileObjectData copyFrom = null ) : System
isValidAlternateAnchor ( int type ) : bool
isValidTileAnchor ( int type ) : bool
isValidWallAnchor ( int type ) : bool

Private Methods

Méthode Description
Calculate ( ) : void
SetupBaseObject ( ) : void
WriteCheck ( ) : void
addAlternate ( int baseStyle ) : void
addBaseTile ( TileObjectData &baseTile ) : void
addSubTile ( int style ) : void
addTile ( int tileType ) : void

Method Details

CalculatePlacementStyle() public méthode

public CalculatePlacementStyle ( int style, int alternate, int random ) : int
style int
alternate int
random int
Résultat int

CallPostPlacementPlayerHook() public static méthode

public static CallPostPlacementPlayerHook ( int tileX, int tileY, int type, int style, int dir, TileObject data ) : bool
tileX int
tileY int
type int
style int
dir int
data TileObject
Résultat bool

CheckLavaDeath() public static méthode

public static CheckLavaDeath ( Tile checkTile ) : bool
checkTile Tile
Résultat bool

CheckLavaDeath() public static méthode

public static CheckLavaDeath ( int type, int style ) : bool
type int
style int
Résultat bool

CheckLiquidPlacement() public static méthode

public static CheckLiquidPlacement ( int type, int style, Tile checkTile ) : bool
type int
style int
checkTile Tile
Résultat bool

CheckWaterDeath() public static méthode

public static CheckWaterDeath ( Tile checkTile ) : bool
checkTile Tile
Résultat bool

CheckWaterDeath() public static méthode

public static CheckWaterDeath ( int type, int style ) : bool
type int
style int
Résultat bool

CopyFrom() public méthode

public CopyFrom ( TileObjectData copy ) : void
copy TileObjectData
Résultat void

CustomPlace() public static méthode

public static CustomPlace ( int type, int style ) : bool
type int
style int
Résultat bool

FullCopyFrom() public méthode

public FullCopyFrom ( TileObjectData copy ) : void
copy TileObjectData
Résultat void

FullCopyFrom() public méthode

public FullCopyFrom ( ushort tileType ) : void
tileType ushort
Résultat void

GetTileData() public static méthode

public static GetTileData ( Tile getTile ) : TileObjectData
getTile Tile
Résultat TileObjectData

GetTileData() public static méthode

public static GetTileData ( int type, int style, int alternate ) : TileObjectData
type int
style int
alternate int
Résultat TileObjectData

Initialize() public static méthode

public static Initialize ( ) : void
Résultat void

LiquidPlace() public méthode

public LiquidPlace ( Tile checkTile ) : bool
checkTile Tile
Résultat bool

LiquidPlace() public static méthode

public static LiquidPlace ( int type, Tile checkTile ) : bool
type int
checkTile Tile
Résultat bool

OriginToTopLeft() public static méthode

public static OriginToTopLeft ( int type, int style, Point16 &baseCoords ) : void
type int
style int
baseCoords Terraria.DataStructures.Point16
Résultat void

PlatformFrameWidth() public static méthode

public static PlatformFrameWidth ( ) : int
Résultat int

SyncObjectPlacement() public static méthode

public static SyncObjectPlacement ( int tileX, int tileY, int type, int style, int dir ) : void
tileX int
tileY int
type int
style int
dir int
Résultat void

TileObjectData() public méthode

public TileObjectData ( TileObjectData copyFrom = null ) : System
copyFrom TileObjectData
Résultat System

isValidAlternateAnchor() public méthode

public isValidAlternateAnchor ( int type ) : bool
type int
Résultat bool

isValidTileAnchor() public méthode

public isValidTileAnchor ( int type ) : bool
type int
Résultat bool

isValidWallAnchor() public méthode

public isValidWallAnchor ( int type ) : bool
type int
Résultat bool