Show / Hide Table of Contents

Class TradeTracker

Inheritance
System.Object
TradeTracker
Implements
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
Namespace: Eco.Gameplay.Economy
Assembly: Eco.Gameplay.dll
Syntax
public class TradeTracker : Object, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions

Constructors

TradeTracker(IHasTradeOffers, TradeOffer, TradeOffer)

Constructor for item-specific offers.

Declaration
public TradeTracker(IHasTradeOffers source, TradeOffer bestSale, TradeOffer bestWanted)
Parameters
Type Name Description
IHasTradeOffers source
TradeOffer bestSale
TradeOffer bestWanted

TradeTracker(IHasTradeOffers, TradeOffer, TradeOffer, Tag)

Constructor supporting both item-specific and tag-based offers.

Declaration
public TradeTracker(IHasTradeOffers source, TradeOffer bestSale, TradeOffer bestWanted, Tag tag)
Parameters
Type Name Description
IHasTradeOffers source
TradeOffer bestSale
TradeOffer bestWanted
Tag tag

Properties

ActionDescription

Declaration
public LocString ActionDescription { get; }
Property Value
Type Description
LocString

Color

Declaration
public ByteColor Color { get; set; }
Property Value
Type Description
ByteColor

ControllerID

Declaration
public ref int ControllerID { get; }
Property Value
Type Description
System.Int32

Currency

Declaration
public Currency Currency { get; }
Property Value
Type Description
Currency

IsBarter

Declaration
public bool IsBarter { get; }
Property Value
Type Description
System.Boolean

IsSelling

Declaration
public bool IsSelling { get; }
Property Value
Type Description
System.Boolean

IsTagOffer

Declaration
public bool IsTagOffer { get; }
Property Value
Type Description
System.Boolean

ItemTypeID

Declaration
public int ItemTypeID { get; set; }
Property Value
Type Description
System.Int32

MaxDurability

Declaration
public float MaxDurability { get; set; }
Property Value
Type Description
System.Single

MinDurability

Declaration
public float MinDurability { get; set; }
Property Value
Type Description
System.Single

NumberAvailable

Declaration
public int NumberAvailable { get; set; }
Property Value
Type Description
System.Int32

NumberWanted

Declaration
public float NumberWanted { get; set; }
Property Value
Type Description
System.Single

ReferencedItem

Declaration
public Item ReferencedItem { get; set; }
Property Value
Type Description
Item

ReferencedItemMarkedUpName

Declaration
public string ReferencedItemMarkedUpName { get; }
Property Value
Type Description
System.String

SalePrice

Declaration
public float SalePrice { get; set; }
Property Value
Type Description
System.Single

SalePriceAndCurrency

Declaration
public string SalePriceAndCurrency { get; }
Property Value
Type Description
System.String

Settlement

Declaration
public Settlement Settlement { get; set; }
Property Value
Type Description
Settlement

Source

Declaration
public IHasTradeOffers Source { get; }
Property Value
Type Description
IHasTradeOffers

SourceName

Declaration
public LocString SourceName { get; }
Property Value
Type Description
LocString

StoreBalance

Declaration
public float StoreBalance { get; }
Property Value
Type Description
System.Single

StorePosition

Declaration
public Vector3 StorePosition { get; }
Property Value
Type Description
System.Numerics.Vector3

Subscriptions

Declaration
public ref ThreadSafeSubscriptions Subscriptions { get; }
Property Value
Type Description
ThreadSafeSubscriptions

Tag

Declaration
public Tag Tag { get; set; }
Property Value
Type Description
Tag

WantedPrice

Declaration
public float WantedPrice { get; set; }
Property Value
Type Description
System.Single

WantedPriceAndCurrency

Declaration
public string WantedPriceAndCurrency { get; }
Property Value
Type Description
System.String

Methods

Auth(Player)

Declaration
public bool Auth(Player player)
Parameters
Type Name Description
Player player
Returns
Type Description
System.Boolean

Destroy()

Declaration
public void Destroy()

GetAllItemTrackersForSource(IHasTradeOffers)

Declaration
public static IEnumerable<TradeTracker> GetAllItemTrackersForSource(IHasTradeOffers source)
Parameters
Type Name Description
IHasTradeOffers source
Returns
Type Description
System.Collections.Generic.IEnumerable<TradeTracker>

TestEquality(TradeTracker)

Declaration
public bool TestEquality(TradeTracker other)
Parameters
Type Name Description
TradeTracker other
Returns
Type Description
System.Boolean

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions

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
☀
☾