Show / Hide Table of Contents

Class PurchaseData

Inheritance
System.Object
PurchaseData
Namespace: Eco.Gameplay.Components.Store.Internal
Assembly: Eco.Gameplay.dll
Syntax
public class PurchaseData : Object

Constructors

PurchaseData()

Declaration
public PurchaseData()

Fields

BuyerIncome

Declaration
public float BuyerIncome
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
public Currency Currency
Field Value
Type Description
Currency

Customer

Declaration
public User Customer
Field Value
Type Description
User

CustomerAccount

Declaration
public BankAccount CustomerAccount
Field Value
Type Description
BankAccount

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
Type Description
BankAccount

Tax

Declaration
public float Tax
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
Type Description
LocString

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾