TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.WaterfallManager Class Reference
+ Collaboration diagram for Terraria.WaterfallManager:

Classes

struct  WaterfallData
 

Public Member Functions

void BindTo (Preferences preferences)
 
void LoadContent ()
 
bool CheckForWaterfall (int i, int j)
 
void FindWaterfalls (bool forced=false)
 
void UpdateFrame ()
 
void Draw (SpriteBatch spriteBatch)
 

Public Attributes

int maxWaterfallCount = 1000
 

Package Functions

void DrawWaterfall (int Style=0, float Alpha=1f)
 

Package Attributes

Asset< Texture2D >[] waterfallTexture = new Asset<Texture2D>[26]
 

Static Package Attributes

const int maxTypes = 26
 

Private Member Functions

void Configuration_OnLoad (Preferences preferences)
 
void DrawWaterfall (int waterfallType, int x, int y, float opacity, Vector2 position, Rectangle sourceRect, Color color, SpriteEffects effects)
 

Static Private Member Functions

static Color StylizeColor (float alpha, int maxSteps, int waterfallType, int y, int s, Tile tileCache, Color aColor)
 
static float GetAlpha (float Alpha, int maxSteps, int waterfallType, int y, int s, Tile tileCache)
 
static void TrySparkling (int x, int y, int direction, Color aColor2)
 
static void AddLight (int waterfallType, int x, int y)
 

Private Attributes

int qualityMax
 
int currentMax
 
WaterfallData[] waterfalls = new WaterfallData[1000]
 
int wFallFrCounter
 
int regularFrame
 
int wFallFrCounter2
 
int slowFrame
 
int rainFrameCounter
 
int rainFrameForeground
 
int rainFrameBackground
 
int snowFrameCounter
 
int snowFrameForeground
 
int findWaterfallCount
 
int waterfallDist = 100
 

Static Private Attributes

const int minWet = 160
 
const int maxWaterfallCountDefault = 1000
 
const int maxLength = 100
 

Detailed Description

Definition at line 12 of file WaterfallManager.cs.


The documentation for this class was generated from the following file: