C# Class Terraria.TileObject

Show file Open project: EmuDevs/EDTerraria Class Usage Examples

Public Properties

Property Type Description
Empty TileObject
alternate int
objectPreview Terraria.DataStructures.TileObjectPreviewData
random int
style int
type int
xCoord int
yCoord int

Public Methods

Method Description
CanPlace ( int x, int y, int type, int style, int dir, TileObject &objectData, bool onlyCheck = false ) : bool
DrawPreview ( SpriteBatch sb, TileObjectPreviewData op, Vector2 position ) : void
Place ( TileObject toBePlaced ) : bool

Method Details

CanPlace() public static method

public static CanPlace ( int x, int y, int type, int style, int dir, TileObject &objectData, bool onlyCheck = false ) : bool
x int
y int
type int
style int
dir int
objectData TileObject
onlyCheck bool
return bool

DrawPreview() public static method

public static DrawPreview ( SpriteBatch sb, TileObjectPreviewData op, Vector2 position ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
op Terraria.DataStructures.TileObjectPreviewData
position Vector2
return void

Place() public static method

public static Place ( TileObject toBePlaced ) : bool
toBePlaced TileObject
return bool

Property Details

Empty public static property

public static TileObject,Terraria Empty
return TileObject

alternate public property

public int alternate
return int

objectPreview public static property

public static TileObjectPreviewData,Terraria.DataStructures objectPreview
return Terraria.DataStructures.TileObjectPreviewData

random public property

public int random
return int

style public property

public int style
return int

type public property

public int type
return int

xCoord public property

public int xCoord
return int

yCoord public property

public int yCoord
return int