Show / Hide Table of Contents

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
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
Namespace: Eco.Gameplay.Components
Assembly: Eco.Gameplay.dll
Syntax
public class TradeOffer : Object, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions

Constructors

TradeOffer()

Declaration
public TradeOffer()

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
Type Description
ThreadSafeAction<TradeOffer>

Properties

Buying

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

Category

Declaration
public StoreCategory Category { get; }
Property Value
Type Description
StoreCategory

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

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

ShouldLimit

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

Stack

Declaration
public ItemStack Stack { get; }
Property Value
Type Description
ItemStack

Subscriptions

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

Tooltip

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
Type Name Description
StoreCategory category

UpdateItemColor(ByteColor)

Declaration
public void UpdateItemColor(ByteColor color)
Parameters
Type Name Description
ByteColor color

UpdateItemSettlement(Settlement)

Declaration
public void UpdateItemSettlement(Settlement settlement)
Parameters
Type Name Description
Settlement settlement

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)
ItemTooltipLibrary.TradeOfferTooltipTitle(TradeOffer)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾