Class PurchaseData
Inheritance
System.Object
PurchaseData
Assembly: Eco.Gameplay.dll
Syntax
public class PurchaseData : Object
Constructors
PurchaseData()
Declaration
Fields
BuyerIncome
Declaration
Field Value
| Type |
Description |
| System.Single |
|
Buying
Declaration
public Dictionary<TradeOffer, int> Buying
Field Value
| Type |
Description |
| System.Collections.Generic.Dictionary<TradeOffer, System.Int32> |
|
BuyingDisplayItems
Snapshots of each offer's representative item at trade-setup time, used so notifications reflect what was sold rather than what the offer looks like after the pack has mutated it.
Declaration
public Dictionary<TradeOffer, Item> BuyingDisplayItems
Field Value
| Type |
Description |
| System.Collections.Generic.Dictionary<TradeOffer, Item> |
|
Currency
Declaration
Field Value
Customer
Declaration
Field Value
CustomerAccount
Declaration
public BankAccount CustomerAccount
Field Value
DestinationInventories
Declaration
public HashSet<Inventory> DestinationInventories
Field Value
| Type |
Description |
| System.Collections.Generic.HashSet<Inventory> |
|
DisplayModelBeingBought
Declaration
public bool DisplayModelBeingBought
Field Value
| Type |
Description |
| System.Boolean |
|
ResolvedTagItems
For tag-based offers, maps each offer to the resolved concrete items and quantities (determined at trade time).
Declaration
public Dictionary<TradeOffer, List<(Item, int)>> ResolvedTagItems
Field Value
| Type |
Description |
| System.Collections.Generic.Dictionary<TradeOffer, System.Collections.Generic.List<System.ValueTuple<Item, System.Int32>>> |
|
SellerIncome
Declaration
public float SellerIncome
Field Value
| Type |
Description |
| System.Single |
|
Selling
Declaration
public Dictionary<TradeOffer, int> Selling
Field Value
| Type |
Description |
| System.Collections.Generic.Dictionary<TradeOffer, System.Int32> |
|
SellingDisplayItems
Declaration
public Dictionary<TradeOffer, Item> SellingDisplayItems
Field Value
| Type |
Description |
| System.Collections.Generic.Dictionary<TradeOffer, Item> |
|
StoreAccount
Declaration
public BankAccount StoreAccount
Field Value
Tax
Declaration
Field Value
| Type |
Description |
| System.Single |
|
Properties
BuyDesc
Declaration
public string BuyDesc { get; }
Property Value
| Type |
Description |
| System.String |
|
IsBarter
Declaration
public bool IsBarter { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
PaymentDiff
Declaration
public float PaymentDiff { get; }
Property Value
| Type |
Description |
| System.Single |
|
SellDesc
Declaration
public string SellDesc { get; }
Property Value
| Type |
Description |
| System.String |
|
Methods
CaptureDisplayItems()
Captures the current representative item for every buying/selling offer, so notifications built later still reflect the item at trade-setup time.
Declaration
public void CaptureDisplayItems()
TradeDesc(Boolean)
Declaration
public LocString TradeDesc(bool describingToTradeInitiator = false)
Parameters
| Type |
Name |
Description |
| System.Boolean |
describingToTradeInitiator |
Will you describe the trade to the player who initialized the trade?
|
Returns
Extension Methods