![]() |
tModLoader v2024.07
A mod to make and play Terraria mods
|
Inherits AbstractNPCShop.
Public Member Functions | |
TravellingMerchantShop (int npcType) | |
TravellingMerchantShop | AddInfoEntry (int item, params Condition[] conditions) |
TravellingMerchantShop | AddInfoEntry (Item item, params Condition[] conditions) |
override 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... | |
override 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... | |
![]() | |
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 | |
new record Entry(Item Item, IEnumerable< Condition > Conditions) override IEnumerable< AbstractNPCShop.Entry > | ActiveEntries [get] |
![]() | |
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 |
Implements AbstractNPCShop.
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 |
Implements AbstractNPCShop.