Class MintComponent
Inheritance
System.Object
MintComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
[RequireComponent]
[RequireComponent]
[RequireComponent]
[RequireComponent]
public class MintComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IPersistentData, INotifyPropertyChanged
Constructors
MintComponent()
Declaration
Fields
AllMints
Declaration
public static List<MintComponent> AllMints
Field Value
CurrencyCreatedEvent
Declaration
public static ThreadSafeAction<User, Currency> CurrencyCreatedEvent
Field Value
Properties
Availability
Declaration
public override WorldObjectComponentClientAvailability Availability { get; }
Property Value
Overrides
CoinsPerItem
Declaration
public float CoinsPerItem { get; }
Property Value
Type |
Description |
System.Single |
|
CurrencyName
Declaration
public string CurrencyName { get; }
Property Value
Type |
Description |
System.String |
|
MintData
Declaration
[NewTooltipChildren]
public MintItemData MintData { get; set; }
Property Value
PersistentData
Declaration
public object PersistentData { get; set; }
Property Value
Type |
Description |
System.Object |
|
SelectedItem
Declaration
public SearchAndSelectItem SelectedItem { get; }
Property Value
Stack
Declaration
public ItemStack Stack { get; }
Property Value
TargetAccount
Declaration
public BankAccount TargetAccount { get; set; }
Property Value
TotalCirculation
Declaration
public float TotalCirculation { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
CraftCoins(Player, Int32, Single, BankAccount)
Declaration
public bool CraftCoins(Player player, int itemQuantity, float coinsPerItem, BankAccount account)
Parameters
Type |
Name |
Description |
Player |
player |
|
System.Int32 |
itemQuantity |
|
System.Single |
coinsPerItem |
|
BankAccount |
account |
|
Returns
Type |
Description |
System.Boolean |
|
CraftCoinsResult(Player, Int32, Single, BankAccount)
Declaration
public Result CraftCoinsResult(Player player, int itemQuantity, float coinsPerItem, BankAccount account)
Parameters
Type |
Name |
Description |
Player |
player |
|
System.Int32 |
itemQuantity |
|
System.Single |
coinsPerItem |
|
BankAccount |
account |
|
Returns
CreateCurrency(Player, String)
Declaration
public bool CreateCurrency(Player player, string currencyName)
Parameters
Type |
Name |
Description |
Player |
player |
|
System.String |
currencyName |
|
Returns
Type |
Description |
System.Boolean |
|
CurrencyReport(Player)
Declaration
public void CurrencyReport(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
Destroy()
Declaration
public override void Destroy()
Overrides
Initialize()
Declaration
public override void Initialize()
Overrides
InitializeCurrency(Currency)
Declaration
public void InitializeCurrency(Currency currencyHandle)
Parameters
Type |
Name |
Description |
Currency |
currencyHandle |
|
OnCreate()
Declaration
public override void OnCreate()
Overrides
SetCurrencyName(Player, String)
Declaration
public bool SetCurrencyName(Player player, string currencyName)
Parameters
Type |
Name |
Description |
Player |
player |
|
System.String |
currencyName |
|
Returns
Type |
Description |
System.Boolean |
|
SetCurrencyNameNoCheck(User, LocString)
Declaration
public Result SetCurrencyNameNoCheck(User user, LocString currencyName)
Parameters
Returns
UpdateCirculation(Currency)
Declaration
public void UpdateCirculation(Currency changedCurrency)
Parameters
Type |
Name |
Description |
Currency |
changedCurrency |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods