TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.ModLoader.NPCShop Class Referencesealed
+ Inheritance diagram for Terraria.ModLoader.NPCShop:
+ Collaboration diagram for Terraria.ModLoader.NPCShop:

Classes

class  Entry
 

Public Member Functions

 NPCShop (int npcType, string name="Shop")
 
Entry GetEntry (int item)
 
bool TryGetEntry (int item, out Entry entry)
 
NPCShop AllowFillingLastSlot ()
 
NPCShop Add (params Entry[] entries)
 
NPCShop Add (Item item, params Condition[] condition)
 
NPCShop Add (int item, params Condition[] condition)
 
NPCShop Add< T > (params Condition[] condition)
 
NPCShop InsertBefore (Entry targetEntry, Item item, params Condition[] condition)
 
NPCShop InsertBefore (int targetItem, Item item, params Condition[] condition)
 
NPCShop InsertBefore (int targetItem, int item, params Condition[] condition)
 
NPCShop InsertAfter (Entry targetEntry, Item item, params Condition[] condition)
 
NPCShop InsertAfter (int targetItem, Item item, params Condition[] condition)
 
NPCShop InsertAfter (int targetItem, int item, params Condition[] condition)
 
override void FillShop (ICollection< Item > items, NPC npc)
 
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.
Does not fill the entire array if there are insufficient entries.
The last slot will be kept empty (null) if P:Terraria.ModLoader.NPCShop.FillLastSlot is false.
 
override void FinishSetup ()
 
void Register ()
 

Properties

IReadOnlyList< EntryEntries [get]
 
bool FillLastSlot [get, private set]
 
override IEnumerable< EntryActiveEntries [get]
 
int NpcType [get]
 
string Name [get]
 
string FullName [get]
 

Private Member Functions

NPCShop InsertAt (Entry targetEntry, bool after, Item item, params Condition[] condition)
 
NPCShop InsertAt (int targetItem, bool after, Item item, params Condition[] condition)
 
NPCShop InsertAt (int targetItem, bool after, int item, params Condition[] condition)
 
void Sort ()
 

Static Private Member Functions

static List< T > SortBeforeAfter< T > (IEnumerable< T > values, Func< T,(T, bool after)> func)
 

Private Attributes

List< Entry_entries
 

Detailed Description

Definition at line 8 of file NPCShop.cs.


The documentation for this class was generated from the following file: