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
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public class StoreCategory : Object, IHasClientControlledContainers, IClearOnTrade, IOwned, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IRPCAuthChecks
Constructors
StoreCategory()
Declaration
StoreCategory(StoreComponent, Boolean)
Declaration
public StoreCategory(StoreComponent component, bool isBuy)
Parameters
Fields
ChangedEvent
Declaration
public ThreadSafeAction ChangedEvent
Field Value
OffersChangedEvent
Declaration
public readonly ThreadSafeAction OffersChangedEvent
Field Value
StoreComponent
Declaration
public StoreComponent StoreComponent
Field Value
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
Owners
Declaration
public IAlias Owners { get; }
Property Value
Subscriptions
Declaration
public ref ThreadSafeSubscriptions Subscriptions { get; }
Property Value
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
Returns
Type |
Description |
System.Boolean |
|
OnDestroy()
Declaration
RemoveTrade(TradeOffer)
Declaration
public void RemoveTrade(TradeOffer offer)
Parameters
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
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods