Terraria ModLoader  0.11.5
A framework for 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...
 

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

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

Returns the ModWaterfallStyle with the given ID.

Definition at line 144 of file WaterStyleLoader.cs.

Referenced by Terraria.ModLoader.ModContent.MusicExists().

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

+ Here is the caller graph for this function:

Member Data Documentation

int Terraria.ModLoader.WaterfallStyleLoader.nextWaterfallStyle = vanillaWaterfallCount
staticprivate

Definition at line 132 of file WaterStyleLoader.cs.

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

Definition at line 131 of file WaterStyleLoader.cs.