Class ExchangeComponent
WorldObject component that allows players to trade currencies with each other.
Inheritance
System.Object
ExchangeComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
[RequireComponent]
[RequireComponent]
[ChatCommandHandler]
public sealed class ExchangeComponent : WorldObjectComponent, ILinkable, IOwned, IHasSerializableID, IRPCAuthChecks, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IHasClientControlledContainers, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, OnOffComponent.IOnOffMessagesContainer
Constructors
ExchangeComponent()
Declaration
public ExchangeComponent()
Fields
CurrencyExchangedEvent
Declaration
public static ThreadSafeAction<User, User, ExchangeEntry> CurrencyExchangedEvent
Field Value
Properties
Availability
Declaration
public override WorldObjectComponentClientAvailability Availability { get; }
Property Value
Overrides
ExchangeComponentChangedEvent
Declaration
public static ThreadSafeAction<ExchangeComponent> ExchangeComponentChangedEvent { get; }
Property Value
ExchangeList
Declaration
public ControllerList<ExchangeEntry> ExchangeList { get; set; }
Property Value
HoldingList
Declaration
public ControllerList<HoldingEntry> HoldingList { get; set; }
Property Value
OnOff
Declaration
public OnOffComponent OnOff { get; }
Property Value
OwnerAccount
Declaration
public BankAccount OwnerAccount { get; set; }
Property Value
Methods
AddExchange(Player)
Declaration
public void AddExchange(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
AddHolding(Player)
Declaration
public void AddHolding(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
Destroy()
Declaration
public override void Destroy()
Overrides
Exchange(User)
Declaration
[ChatSubCommand]
public static Task Exchange(User user)
Parameters
Type |
Name |
Description |
User |
user |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Initialize()
Declaration
public override void Initialize()
Overrides
OnCreate()
Declaration
public override void OnCreate()
Overrides
Explicit Interface Implementations
OnOffComponent.IOnOffMessagesContainer.InvalidStatusMessage
Declaration
LocString OnOffComponent.IOnOffMessagesContainer.InvalidStatusMessage { get; }
Returns
OnOffComponent.IOnOffMessagesContainer.NotAuthedMessage
Declaration
LocString OnOffComponent.IOnOffMessagesContainer.NotAuthedMessage { get; }
Returns
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods