|
tModLoader v2025.09
A mod to make and play Terraria mods
|
Inherited by NPCShop, and TravellingMerchantShop.
Classes | |
| interface | Entry |
Public Member Functions | |
| AbstractNPCShop (int npcType, string name="Shop") | |
| abstract void | FillShop (ICollection< Item > items, NPC npc) |
| Unbounded variant of FillShop(Item[], NPC, out bool), for future forwards compatibility with tabbed or scrolling shops. More... | |
| abstract void | FillShop (Item[] items, NPC npc, out bool overflow) |
| Fills a shop array with the contents of this shop, evaluating conditions and running callbacks. More... | |
| virtual void | FinishSetup () |
| void | Register () |
Properties | |
| abstract IEnumerable< Entry > | ActiveEntries [get] |
| string | FullName [get] |
| string | Name [get] |
| int | NpcType [get] |
Unbounded variant of FillShop(Item[], NPC, out bool), for future forwards compatibility with tabbed or scrolling shops.
| items | The collection to be filled |
| npc | The NPC the player is talking to |
Implemented in NPCShop, and TravellingMerchantShop.
Fills a shop array with the contents of this shop, evaluating conditions and running callbacks.
| items | Array to be filled. |
| npc | The NPC the player is talking to |
| overflow | True if some items were unable to fit in the provided array |
Implemented in NPCShop, and TravellingMerchantShop.