tModLoader v0.11.8.9
A mod to make and play Terraria mods
Terraria.ModLoader.WaterfallStyleLoader Class Reference
+ Collaboration diagram for Terraria.ModLoader.WaterfallStyleLoader:

Static Public Member Functions

static ModWaterfallStyle GetWaterfallStyle (int style)
 Returns the ModWaterfallStyle with the given ID. More...
 

Static Public Attributes

const int vanillaWaterfallCount = WaterfallManager.maxTypes
 

Static Private Attributes

static int nextWaterfallStyle = vanillaWaterfallCount
 

Detailed Description

Definition at line 129 of file WaterStyleLoader.cs.

Member Function Documentation

◆ GetWaterfallStyle()

static ModWaterfallStyle Terraria.ModLoader.WaterfallStyleLoader.GetWaterfallStyle ( int  style)
static

Returns the ModWaterfallStyle with the given ID.

Definition at line 144 of file WaterStyleLoader.cs.

144 {
145 if (style < vanillaWaterfallCount || style >= nextWaterfallStyle) {
146 return null;
147 }
148 return waterfallStyles[style - vanillaWaterfallCount];
149 }

References Terraria.ModLoader.WaterfallStyleLoader.nextWaterfallStyle, and Terraria.ModLoader.WaterfallStyleLoader.vanillaWaterfallCount.

Member Data Documentation

◆ nextWaterfallStyle

int Terraria.ModLoader.WaterfallStyleLoader.nextWaterfallStyle = vanillaWaterfallCount
staticprivate

◆ vanillaWaterfallCount

const int Terraria.ModLoader.WaterfallStyleLoader.vanillaWaterfallCount = WaterfallManager.maxTypes
static