Skip to main content

PostboxManager.TradeVendorData

A class in Root.Township, the global namespace.

Server: coins and items gathered from one player's trade vendors during a wipe, posted to their postbox when the wipe ends.

Constructors​

MemberWhat it is
TradeVendorData()Creates a PostboxManager.TradeVendorData with default values.

Fields​

1 private and internal field
MemberWhat it is
private List<SerializedSavedDynamicObject> itemsThe saved items.

Properties​

MemberWhat it is
int CoinCount { get; private set; }Total coins collected.
IEnumerable<SerializedSavedDynamicObject> Entities { get; }The saved objects to post: a coin pouch (or one coin) for the coins, then the items.
int ItemCount { get; }How many items were saved.

Methods​

MemberWhat it is
void AddTradeVendor(int coinCount, NetworkEntity dockedItem)Adds a vendor's coins and saves then destroys its docked item.

Used in​

Members of other types that take, return or hold a TradeVendorData: