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

ReserveStyle() static private method

static private ReserveStyle ( ) : int
return int
		internal static int ReserveStyle()
		{
			int reserve = nextWaterfallStyle;
			nextWaterfallStyle++;
			return reserve;
		}

Usage Example

Exemplo n.º 1
0
        protected sealed override void Register()
        {
            Type = WaterfallStyleLoader.ReserveStyle();

            ModTypeLookup <ModWaterfallStyle> .Register(this);

            WaterfallStyleLoader.waterfallStyles.Add(this);
        }