C# Class Terraria.GameContent.Liquid.ReplacementLiquidRenderer

Show file Open project: RomSteady/RomTerraria Class Usage Examples

Public Properties

Property Type Description
Instance ReplacementLiquidRenderer

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch, Vector2 drawOffset, int waterStyle, float alpha, bool isBackgroundDraw ) : void
GetCachedDrawArea ( ) : Rectangle
GetVisibleLiquid ( int x, int y ) : float
HasFullWater ( int x, int y ) : bool
PrepareDraw ( Rectangle drawArea ) : void
SetWaveMaskData ( Texture2D texture ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
InternalDraw ( SpriteBatch spriteBatch, Vector2 drawOffset, int waterStyle, float globalAlpha, bool isBackgroundDraw ) : void
InternalPrepareDraw ( Rectangle drawArea ) : void
ReplacementLiquidRenderer ( ) : System

Method Details

Draw() public method

public Draw ( SpriteBatch spriteBatch, Vector2 drawOffset, int waterStyle, float alpha, bool isBackgroundDraw ) : void
spriteBatch SpriteBatch
drawOffset Vector2
waterStyle int
alpha float
isBackgroundDraw bool
return void

GetCachedDrawArea() public method

public GetCachedDrawArea ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

GetVisibleLiquid() public method

public GetVisibleLiquid ( int x, int y ) : float
x int
y int
return float

HasFullWater() public method

public HasFullWater ( int x, int y ) : bool
x int
y int
return bool

PrepareDraw() public method

public PrepareDraw ( Rectangle drawArea ) : void
drawArea Microsoft.Xna.Framework.Rectangle
return void

SetWaveMaskData() public method

public SetWaveMaskData ( Texture2D texture ) : void
texture Texture2D
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

Instance public static property

public static ReplacementLiquidRenderer,Terraria.GameContent.Liquid Instance
return ReplacementLiquidRenderer