API
Interface
public interface ICurrencyPlugin
{
// Wallet management
WalletInstance CreateWallet(string walletId = null);
WalletInstance CreateEntityWallet(string entityId, string walletId = null);
WalletInstance GetWallet(string walletId);
WalletInstance GetEntityWallet(string entityId);
bool DestroyWallet(string walletId);
// Currency operations
bool AddCurrency(string walletId, string currencyId, long amount,
bool suppressEvents = false, GameObject source = null);
bool RemoveCurrency(string walletId, string currencyId, long amount,
bool suppressEvents = false, GameObject source = null);
bool SetCurrency(string walletId, string currencyId, long amount,
bool suppressEvents = false, GameObject source = null);
bool HasCurrency(string walletId, string currencyId, long amount);
long GetCurrencyAmount(string walletId, string currencyId);
// Transfer
bool TransferCurrency(string sourceWalletId, string targetWalletId,
string currencyId, long amount);
// Conversion
bool ProcessConversion(string walletId, string conversionEntryId,
long count = -1);
// Database queries
List<CurrencyEntry> GetAllCurrencies();
CurrencyEntry GetCurrency(string currencyId);
List<CurrencyConversionEntry> GetAllConversions();
CurrencyConversionEntry GetConversion(string conversionId);
}CurrencyEntry
Field
Type
Description
CurrencyConversionEntry
Field
Type
Description
WalletInstance
Events
Event
Fields
Description
Commands
Command
Description
Components
Component
Description
Save Data
Usage
Last updated
Was this helpful?
