C# Class Terraria.ModLoader.ModTile

Mostra file Open project: JavidPack/TerraCustom Class Usage Examples

Public Properties

Property Type Description
adjTiles int[]
animationFrameHeight int
bed bool
chest string
chestDrop int
closeDoorID int
disableSmartCursor bool
dresser string
dresserDrop int
drop int
dustType int
minPick int
mineResist float
openDoorID int
sapling bool
soundStyle int
soundType int
torch bool

Public Methods

Method Description
AddMapEntry ( Color color, string name = "" ) : void
AddMapEntry ( Color color, string name, Func nameFunc ) : void
AddToArray ( int &array ) : void
AnimateTile ( int &frame, int &frameCounter ) : void
AutoSelect ( int i, int j, Item item ) : bool
Autoload ( string &name, string &texture ) : bool
CanExplode ( int i, int j ) : bool
CanKillTile ( int i, int j, bool &blockDamaged ) : bool
CanPlace ( int i, int j ) : bool
ChangeWaterfallStyle ( int &style ) : void
CreateDust ( int i, int j, int &type ) : bool
Dangersense ( int i, int j, Player player ) : bool
DrawEffects ( int i, int j, SpriteBatch spriteBatch, Color &drawColor ) : void
Drop ( int i, int j ) : bool
DropCritterChance ( int i, int j, int &wormChance, int &grassHopperChance, int &jungleGrubChance ) : void
GetMapOption ( int i, int j ) : ushort
HasWalkDust ( ) : bool
HitWire ( int i, int j ) : void
KillMultiTile ( int i, int j, int frameX, int frameY ) : void
KillSound ( int i, int j ) : bool
KillTile ( int i, int j, bool &fail, bool &effectOnly, bool &noItem ) : void
ModifyLight ( int i, int j, float &r, float &g, float &b ) : void
MouseOver ( int i, int j ) : void
MouseOverFar ( int i, int j ) : void
NearbyEffects ( int i, int j, bool closer ) : void
NumDust ( int i, int j, bool fail, int &num ) : void
PostDraw ( int i, int j, SpriteBatch spriteBatch ) : void
PostSetDefaults ( ) : void
PreDraw ( int i, int j, SpriteBatch spriteBatch ) : bool
RandomUpdate ( int i, int j ) : void
RightClick ( int i, int j ) : void
SaplingGrowthType ( int &style ) : int
SetDefaults ( ) : void
SetDrawPositions ( int i, int j, int &width, int &offsetY, int &height ) : void
SetModCactus ( ModCactus cactus ) : void
SetModPalmTree ( ModPalmTree palmTree ) : void
SetModTree ( ModTree tree ) : void
SetSpriteEffects ( int i, int j, SpriteEffects &spriteEffects ) : void
Slope ( int i, int j ) : bool
TileFrame ( int i, int j, bool &resetFrame, bool &noBreak ) : bool
WalkDust ( int &dustType, bool &makeDust, Color &color ) : void

Method Details

AddMapEntry() public method

public AddMapEntry ( Color color, string name = "" ) : void
color Color
name string
return void

AddMapEntry() public method

public AddMapEntry ( Color color, string name, Func nameFunc ) : void
color Color
name string
nameFunc Func
return void

AddToArray() public method

public AddToArray ( int &array ) : void
array int
return void

AnimateTile() public method

public AnimateTile ( int &frame, int &frameCounter ) : void
frame int
frameCounter int
return void

AutoSelect() public method

public AutoSelect ( int i, int j, Item item ) : bool
i int
j int
item Item
return bool

Autoload() public method

public Autoload ( string &name, string &texture ) : bool
name string
texture string
return bool

CanExplode() public method

public CanExplode ( int i, int j ) : bool
i int
j int
return bool

CanKillTile() public method

public CanKillTile ( int i, int j, bool &blockDamaged ) : bool
i int
j int
blockDamaged bool
return bool

CanPlace() public method

public CanPlace ( int i, int j ) : bool
i int
j int
return bool

ChangeWaterfallStyle() public method

public ChangeWaterfallStyle ( int &style ) : void
style int
return void

CreateDust() public method

public CreateDust ( int i, int j, int &type ) : bool
i int
j int
type int
return bool

Dangersense() public method

public Dangersense ( int i, int j, Player player ) : bool
i int
j int
player Terraria.Player
return bool

DrawEffects() public method

public DrawEffects ( int i, int j, SpriteBatch spriteBatch, Color &drawColor ) : void
i int
j int
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
drawColor Color
return void

Drop() public method

public Drop ( int i, int j ) : bool
i int
j int
return bool

DropCritterChance() public method

public DropCritterChance ( int i, int j, int &wormChance, int &grassHopperChance, int &jungleGrubChance ) : void
i int
j int
wormChance int
grassHopperChance int
jungleGrubChance int
return void

GetMapOption() public method

public GetMapOption ( int i, int j ) : ushort
i int
j int
return ushort

HasWalkDust() public method

public HasWalkDust ( ) : bool
return bool

HitWire() public method

public HitWire ( int i, int j ) : void
i int
j int
return void

KillMultiTile() public method

public KillMultiTile ( int i, int j, int frameX, int frameY ) : void
i int
j int
frameX int
frameY int
return void

KillSound() public method

public KillSound ( int i, int j ) : bool
i int
j int
return bool

KillTile() public method

public KillTile ( int i, int j, bool &fail, bool &effectOnly, bool &noItem ) : void
i int
j int
fail bool
effectOnly bool
noItem bool
return void

ModifyLight() public method

public ModifyLight ( int i, int j, float &r, float &g, float &b ) : void
i int
j int
r float
g float
b float
return void

MouseOver() public method

public MouseOver ( int i, int j ) : void
i int
j int
return void

MouseOverFar() public method

public MouseOverFar ( int i, int j ) : void
i int
j int
return void

NearbyEffects() public method

public NearbyEffects ( int i, int j, bool closer ) : void
i int
j int
closer bool
return void

NumDust() public method

public NumDust ( int i, int j, bool fail, int &num ) : void
i int
j int
fail bool
num int
return void

PostDraw() public method

public PostDraw ( int i, int j, SpriteBatch spriteBatch ) : void
i int
j int
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

PostSetDefaults() public method

public PostSetDefaults ( ) : void
return void

PreDraw() public method

public PreDraw ( int i, int j, SpriteBatch spriteBatch ) : bool
i int
j int
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return bool

RandomUpdate() public method

public RandomUpdate ( int i, int j ) : void
i int
j int
return void

RightClick() public method

public RightClick ( int i, int j ) : void
i int
j int
return void

SaplingGrowthType() public method

public SaplingGrowthType ( int &style ) : int
style int
return int

SetDefaults() public method

public SetDefaults ( ) : void
return void

SetDrawPositions() public method

public SetDrawPositions ( int i, int j, int &width, int &offsetY, int &height ) : void
i int
j int
width int
offsetY int
height int
return void

SetModCactus() public method

public SetModCactus ( ModCactus cactus ) : void
cactus ModCactus
return void

SetModPalmTree() public method

public SetModPalmTree ( ModPalmTree palmTree ) : void
palmTree ModPalmTree
return void

SetModTree() public method

public SetModTree ( ModTree tree ) : void
tree ModTree
return void

SetSpriteEffects() public method

public SetSpriteEffects ( int i, int j, SpriteEffects &spriteEffects ) : void
i int
j int
spriteEffects SpriteEffects
return void

Slope() public method

public Slope ( int i, int j ) : bool
i int
j int
return bool

TileFrame() public method

public TileFrame ( int i, int j, bool &resetFrame, bool &noBreak ) : bool
i int
j int
resetFrame bool
noBreak bool
return bool

WalkDust() public method

public WalkDust ( int &dustType, bool &makeDust, Color &color ) : void
dustType int
makeDust bool
color Color
return void

Property Details

adjTiles public_oe property

public int[] adjTiles
return int[]

animationFrameHeight public_oe property

public int animationFrameHeight
return int

bed public_oe property

public bool bed
return bool

chest public_oe property

public string chest
return string

chestDrop public_oe property

public int chestDrop
return int

closeDoorID public_oe property

public int closeDoorID
return int

disableSmartCursor public_oe property

public bool disableSmartCursor
return bool

dresser public_oe property

public string dresser
return string

dresserDrop public_oe property

public int dresserDrop
return int

drop public_oe property

public int drop
return int

dustType public_oe property

public int dustType
return int

minPick public_oe property

public int minPick
return int

mineResist public_oe property

public float mineResist
return float

openDoorID public_oe property

public int openDoorID
return int

sapling public_oe property

public bool sapling
return bool

soundStyle public_oe property

public int soundStyle
return int

soundType public_oe property

public int soundType
return int

torch public_oe property

public bool torch
return bool