C# Class Terraria.GameContent.Liquid.ReplacementLiquidRenderer

Afficher le fichier Open project: RomSteady/RomTerraria Class Usage Examples

Méthodes publiques

Свойство Type Description
Instance ReplacementLiquidRenderer

Méthodes publiques

Méthode 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

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

Method Details

Draw() public méthode

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

GetCachedDrawArea() public méthode

public GetCachedDrawArea ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

GetVisibleLiquid() public méthode

public GetVisibleLiquid ( int x, int y ) : float
x int
y int
Résultat float

HasFullWater() public méthode

public HasFullWater ( int x, int y ) : bool
x int
y int
Résultat bool

PrepareDraw() public méthode

public PrepareDraw ( Rectangle drawArea ) : void
drawArea Microsoft.Xna.Framework.Rectangle
Résultat void

SetWaveMaskData() public méthode

public SetWaveMaskData ( Texture2D texture ) : void
texture Texture2D
Résultat void

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Property Details

Instance public_oe static_oe property

public static ReplacementLiquidRenderer,Terraria.GameContent.Liquid Instance
Résultat ReplacementLiquidRenderer