Class StoreComponent
Inheritance
System.Object
StoreComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
[RequireComponent]
[RequireComponent]
[RequireComponent]
[RequireComponent]
[RequireComponent]
[RequireComponent]
public sealed class StoreComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IPersistentData, OnOffComponent.IOnOffMessagesContainer, IHasTradeOffers
Constructors
StoreComponent()
Declaration
Properties
AllOffers
Declaration
public IEnumerable<TradeOffer> AllOffers { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IEnumerable<TradeOffer> |
|
Availability
Declaration
public override WorldObjectComponentClientAvailability Availability { get; }
Property Value
Overrides
Balance
Declaration
public float Balance { get; }
Property Value
| Type |
Description |
| System.Single |
|
BalanceChangedEvent
Declaration
public static ThreadSafeAction<StoreComponent> BalanceChangedEvent { get; }
Property Value
BankAccount
Declaration
public BankAccount BankAccount { get; }
Property Value
BankAccountChangedEvent
Declaration
public static ThreadSafeAction<StoreComponent> BankAccountChangedEvent { get; }
Property Value
Currency
Declaration
public Currency Currency { get; }
Property Value
CurrencyChangedEvent
Declaration
public static ThreadSafeAction<StoreComponent> CurrencyChangedEvent { get; }
Property Value
CurrencyName
Declaration
public string CurrencyName { get; }
Property Value
| Type |
Description |
| System.String |
|
IsBarter
Declaration
public bool IsBarter { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsStockDirty
Declaration
public bool IsStockDirty { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
OnOff
Declaration
public OnOffComponent OnOff { get; }
Property Value
ShouldRequestEverything
Declaration
public override bool ShouldRequestEverything { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
StoreData
Declaration
[NewTooltipChildren]
public StoreItemData StoreData { get; set; }
Property Value
Methods
CreateCategoryWithMixedOffers(Player, List<Int32>, List<String>, Boolean)
Creates a new category with both item and tag-based trade offers in a single category.
Declaration
public void CreateCategoryWithMixedOffers(Player player, List<int> itemIds, List<string> tagNames, bool isBuy)
Parameters
| Type |
Name |
Description |
| Player |
player |
|
| System.Collections.Generic.List<System.Int32> |
itemIds |
|
| System.Collections.Generic.List<System.String> |
tagNames |
|
| System.Boolean |
isBuy |
|
CreateCategoryWithOffers(Player, List<Int32>, Boolean)
Creates new category and tries to pick best name based on tags
Declaration
public void CreateCategoryWithOffers(Player player, List<int> itemIds, bool isBuy)
Parameters
| Type |
Name |
Description |
| Player |
player |
|
| System.Collections.Generic.List<System.Int32> |
itemIds |
|
| System.Boolean |
isBuy |
|
Destroy()
Declaration
public override void Destroy()
Overrides
Declaration
public Result DoPerformTrade(User customer, BSONObject tradeData, BankAccount purchaserAccount, bool dryRun = false)
Parameters
Returns
Declaration
public string DryRunPerformTrade(User customer, BSONObject tradeData, BankAccount purchaserAccount)
Parameters
Returns
| Type |
Description |
| System.String |
|
Initialize()
Declaration
public override void Initialize()
Overrides
Declaration
public bool PerformTrade(User customer, BSONObject tradeData, BankAccount purchaserAccount)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Tick()
Declaration
public override void Tick()
Overrides
Explicit Interface Implementations
OnOffComponent.IOnOffMessagesContainer.InvalidStatusMessage
Declaration
LocString OnOffComponent.IOnOffMessagesContainer.InvalidStatusMessage { get; }
Returns
OnOffComponent.IOnOffMessagesContainer.NotAuthedMessage
Declaration
LocString OnOffComponent.IOnOffMessagesContainer.NotAuthedMessage { get; }
Returns
IHasTradeOffers.EnabledForTrades
Declaration
bool IHasTradeOffers.EnabledForTrades { get; }
Returns
| Type |
Description |
| System.Boolean |
|
IHasTradeOffers.SourceName
Declaration
LocString IHasTradeOffers.SourceName { get; }
Returns
IPersistentData.PersistentData
Declaration
object IPersistentData.PersistentData { get; set; }
Returns
| Type |
Description |
| System.Object |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods