Class TradeOffer
Represents an offer of the store. Contains description of condition of sell/buy, the price, the kind of item.
Inheritance
System.Object
TradeOffer
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public class TradeOffer : Object, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions
Constructors
TradeOffer()
Declaration
TradeOffer(Item, Boolean)
Declaration
public TradeOffer(Item item, bool buying)
Parameters
Type |
Name |
Description |
Item |
item |
|
System.Boolean |
buying |
|
TradeOffer(Item, Single, Boolean)
Declaration
public TradeOffer(Item item, float price, bool buying)
Parameters
Type |
Name |
Description |
Item |
item |
|
System.Single |
price |
|
System.Boolean |
buying |
|
Fields
ItemUpdatedEvent
Declaration
public static ThreadSafeAction<TradeOffer> ItemUpdatedEvent
Field Value
Properties
Buying
Declaration
public bool Buying { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Category
Declaration
public StoreCategory Category { 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 |
|
HasDurability
Declaration
public bool HasDurability { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsSet
Declaration
public bool IsSet { get; }
Property Value
Type |
Description |
System.Boolean |
|
Limit
Declaration
public int Limit { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
MaxDurability
Declaration
public float MaxDurability { get; set; }
Property Value
Type |
Description |
System.Single |
|
MaxIntegrity
Declaration
public float MaxIntegrity { get; set; }
Property Value
Type |
Description |
System.Single |
|
MaxNumWanted
Declaration
public int MaxNumWanted { get; }
Property Value
Type |
Description |
System.Int32 |
|
MinDurability
Declaration
public float MinDurability { get; set; }
Property Value
Type |
Description |
System.Single |
|
MinIntegrity
Declaration
public float MinIntegrity { get; set; }
Property Value
Type |
Description |
System.Single |
|
Price
Declaration
public float Price { get; set; }
Property Value
Type |
Description |
System.Single |
|
Settlement
Declaration
public Settlement Settlement { get; set; }
Property Value
ShouldLimit
Declaration
public bool ShouldLimit { get; }
Property Value
Type |
Description |
System.Boolean |
|
Stack
Declaration
public ItemStack Stack { get; }
Property Value
Subscriptions
Declaration
public ref ThreadSafeSubscriptions Subscriptions { get; }
Property Value
Declaration
[NewTooltipChildren]
public object Tooltip { get; }
Property Value
Type |
Description |
System.Object |
|
Methods
MeetsSpecialRequirements(Item)
Declaration
public bool MeetsSpecialRequirements(Item item)
Parameters
Type |
Name |
Description |
Item |
item |
|
Returns
Type |
Description |
System.Boolean |
|
SetCategory(StoreCategory)
Declaration
public void SetCategory(StoreCategory category)
Parameters
UpdateItemColor(ByteColor)
Declaration
public void UpdateItemColor(ByteColor color)
Parameters
UpdateItemSettlement(Settlement)
Declaration
public void UpdateItemSettlement(Settlement settlement)
Parameters
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods