Show / Hide Table of Contents

Class StoreCategory

Subgroup of offers at the store. Each group will be showed and handled separated by UI, allowing users to group similar elements as they want.

Inheritance
System.Object
StoreCategory
Implements
IHasClientControlledContainers
IClearOnTrade
IOwned
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
IRPCAuthChecks
Namespace: Eco.Gameplay.Components.Store.Internal
Assembly: Eco.Gameplay.dll
Syntax
public class StoreCategory : Object, IHasClientControlledContainers, IClearOnTrade, IOwned, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IRPCAuthChecks

Constructors

StoreCategory()

Declaration
public StoreCategory()

StoreCategory(StoreComponent, Boolean)

Declaration
public StoreCategory(StoreComponent component, bool isBuy)
Parameters
Type Name Description
StoreComponent component
System.Boolean isBuy

Fields

ChangedEvent

Declaration
public ThreadSafeAction ChangedEvent
Field Value
Type Description
ThreadSafeAction

OffersChangedEvent

Declaration
public readonly ThreadSafeAction OffersChangedEvent
Field Value
Type Description
ThreadSafeAction

StoreComponent

Declaration
public StoreComponent StoreComponent
Field Value
Type Description
StoreComponent

Properties

ControllerID

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

GeneratedName

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

IsBuy

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

Name

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

Offers

Declaration
public ControllerList<TradeOffer> Offers { get; set; }
Property Value
Type Description
ControllerList<TradeOffer>

Owners

Declaration
public IAlias Owners { get; }
Property Value
Type Description
IAlias

Subscriptions

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

Methods

AddCallbacks()

Declaration
public void AddCallbacks()

AddTradeOffer(Int32, Single)

Declaration
public void AddTradeOffer(int itemId, float price)
Parameters
Type Name Description
System.Int32 itemId
System.Single price

AddTradeOffer(Int32, Single, ByteColor)

Declaration
public void AddTradeOffer(int itemId, float price, ByteColor color)
Parameters
Type Name Description
System.Int32 itemId
System.Single price
ByteColor color

AddTradeOffer(Int32, Single, Single, Single, Int32, Settlement, ByteColor, Single, Single)

Declaration
public void AddTradeOffer(int itemId, float minDurability, float maxDurability, float price, int limit, Settlement settlement, ByteColor color, float minIntegrity, float maxIntegrity)
Parameters
Type Name Description
System.Int32 itemId
System.Single minDurability
System.Single maxDurability
System.Single price
System.Int32 limit
Settlement settlement
ByteColor color
System.Single minIntegrity
System.Single maxIntegrity

GetBestName(List<Int32>)

Choose the best title for the category based on the item tags in itemIDs.

Declaration
public void GetBestName(List<int> itemIDs)
Parameters
Type Name Description
System.Collections.Generic.List<System.Int32> itemIDs

IsAuthorizedFullAccess(Player)

Declaration
protected bool IsAuthorizedFullAccess(Player player)
Parameters
Type Name Description
Player player
Returns
Type Description
System.Boolean

IsRPCAuthorized(IWorldObserver, AccessType, Object[])

Declaration
public bool IsRPCAuthorized(IWorldObserver observer, AccessType requiredAccess, object[] args)
Parameters
Type Name Description
IWorldObserver observer
AccessType requiredAccess
System.Object[] args
Returns
Type Description
System.Boolean

OnDestroy()

Declaration
public void OnDestroy()

RemoveTrade(TradeOffer)

Declaration
public void RemoveTrade(TradeOffer offer)
Parameters
Type Name Description
TradeOffer offer

SetTrades(Player, List<Int32>)

It updates offers list to match item ids, creating or deleting offers as necesary.

Declaration
public bool SetTrades(Player player, List<int> itemIDs)
Parameters
Type Name Description
Player player
System.Collections.Generic.List<System.Int32> itemIDs
Returns
Type Description
System.Boolean

Events

PropertyChanged

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

Explicit Interface Implementations

IOwned.Deed

Declaration
Deed IOwned.Deed { get; }
Returns
Type Description
Deed

Implements

IHasClientControlledContainers
IClearOnTrade
IOwned
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions
IRPCAuthChecks

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