Terraria.ModLoader.WaterfallStyleLoader.GetWaterfallStyle C# (CSharp) Method

GetWaterfallStyle() public static method

public static GetWaterfallStyle ( int style ) : ModWaterfallStyle
style int
return ModWaterfallStyle
		public static ModWaterfallStyle GetWaterfallStyle(int style)
		{
			if (style < vanillaWaterfallCount || style >= nextWaterfallStyle)
			{
				return null;
			}
			return waterfallStyles[style - vanillaWaterfallCount];
		}

Usage Example

Exemplo n.º 1
0
 /// <summary>
 /// Returns the ModWaterfallStyle with the given ID.
 /// </summary>
 public static ModWaterfallStyle GetModWaterfallStyle(int style) => WaterfallStyleLoader.GetWaterfallStyle(style);