GetNPC() public static method

public static GetNPC ( int type ) : ModNPC
type int
return ModNPC
Ejemplo n.º 1
0
 /// <summary>
 /// Gets the ModNPC instance corresponding to the specified type.
 /// </summary>
 /// <param name="type">The type of the npc</param>
 /// <returns>The ModNPC instance in the npcs array, null if not found.</returns>
 public static ModNPC GetModNPC(int type) => NPCLoader.GetNPC(type);