Terraria.ModLoader.ModDust.GetDust C# (CSharp) 메소드

GetDust() 공개 정적인 메소드

public static GetDust ( int type ) : ModDust
type int
리턴 ModDust
		public static ModDust GetDust(int type)
		{
			return type >= DustID.Count && type < DustCount ? dusts[type - DustID.Count] : null;
		}

Usage Example

예제 #1
0
 /// <summary>
 /// Gets the ModDust instance with the given type. Returns null if no ModDust with the given type exists.
 /// </summary>
 public static ModDust GetModDust(int type) => ModDust.GetDust(type);