Class TradeTracker
Inheritance
System.Object
TradeTracker
Implements
System.ComponentModel.INotifyPropertyChanged
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
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
Properties
ActionDescription
Declaration
public LocString ActionDescription { get; }
Property Value
Color
Declaration
public ByteColor Color { get; set; }
Property Value
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Currency
Declaration
public Currency Currency { get; }
Property Value
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
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
Source
Declaration
public IHasTradeOffers Source { get; }
Property Value
SourceName
Declaration
public LocString SourceName { get; }
Property Value
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
Tag
Declaration
public Tag Tag { get; set; }
Property Value
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
GetAllItemTrackersForSource(IHasTradeOffers)
Declaration
public static IEnumerable<TradeTracker> GetAllItemTrackersForSource(IHasTradeOffers source)
Parameters
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<TradeTracker> |
|
TestEquality(TradeTracker)
Declaration
public bool TestEquality(TradeTracker other)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type |
Description |
| System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods