Show / Hide Table of Contents

Class StoreItemData

This class contains stores data: all offers and currency. It handles callbacks for offer changes.

Inheritance
System.Object
StoreItemData
Implements
IHasClientControlledContainers
IController
IViewController
IHasUniversalID
IClearOnTrade
IClearRequestHandler
System.ComponentModel.INotifyPropertyChanged
Namespace: Eco.Gameplay.Components.Store.Internal
Assembly: Eco.Gameplay.dll
Syntax
public class StoreItemData : Object, IHasClientControlledContainers, IController, IViewController, IHasUniversalID, IClearOnTrade, IClearRequestHandler, INotifyPropertyChanged

Constructors

StoreItemData()

Declaration
public StoreItemData()

Properties

BuyCategories

Declaration
public ControllerList<StoreCategory> BuyCategories { get; set; }
Property Value
Type Description
ControllerList<StoreCategory>

BuyOffers

Declaration
public IEnumerable<TradeOffer> BuyOffers { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<TradeOffer>

BuyOffersChangedEvent

Declaration
public static ThreadSafeAction<StoreItemData> BuyOffersChangedEvent { get; }
Property Value
Type Description
ThreadSafeAction<StoreItemData>

Categories

Declaration
public IEnumerable<StoreCategory> Categories { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<StoreCategory>

ControllerID

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

Currency

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

HasDataThatCanBeCleared

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

SellCategories

Declaration
public ControllerList<StoreCategory> SellCategories { get; set; }
Property Value
Type Description
ControllerList<StoreCategory>

SellOffers

Declaration
public IEnumerable<TradeOffer> SellOffers { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<TradeOffer>

SellOffersChangedEvent

Declaration
public static ThreadSafeAction<StoreItemData> SellOffersChangedEvent { get; }
Property Value
Type Description
ThreadSafeAction<StoreItemData>

Methods

TryHandleClearRequest(Player)

Declaration
public Result TryHandleClearRequest(Player player)
Parameters
Type Name Description
Player player
Returns
Type Description
Result

Events

PropertyChanged

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

Implements

IHasClientControlledContainers
IController
IViewController
IHasUniversalID
IClearOnTrade
IClearRequestHandler
System.ComponentModel.INotifyPropertyChanged

Extension Methods

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