tModLoader v2024.03
A mod to make and play Terraria mods
NPCShopDatabase Class Reference

Static Public Member Functions

static IEnumerable< Entry > GetPylonEntries ()
 
static string GetShopName (int npcType, string shopName="Shop")
 Gets a shop name (identifier) in the format matching AbstractNPCShop.FullName
Can be used with TryGetNPCShop and GlobalNPC.ModifyActiveShop(NPC, string, Item[]) More...
 
static string GetShopNameFromVanillaIndex (int index)
 
static void Initialize ()
 
static bool TryGetNPCShop (string fullName, out AbstractNPCShop shop)
 

Static Public Attributes

static readonly ISet< string > NoPylons = new HashSet<string>()
 

Properties

static IEnumerable< AbstractNPCShopAllShops [get]
 

Member Function Documentation

◆ GetShopName()

static string NPCShopDatabase.GetShopName ( int  npcType,
string  shopName = "Shop" 
)
static

Gets a shop name (identifier) in the format matching AbstractNPCShop.FullName
Can be used with TryGetNPCShop and GlobalNPC.ModifyActiveShop(NPC, string, Item[])

Parameters
npcType
shopName
Returns