Ejemplo n.º 1
0
        internal EcoEconomyAccount(IIdentity player, IEconomyCurrency currency)
        {
            if (player == null || !(player is EcoPlayer ecoPlayer) && !(player is EcoPlayerUser))
            {
                throw new ArgumentException("Must be of type \"EcoPlayer\".", nameof(player));
            }

            Owner    = player;
            Currency = currency;
        }
Ejemplo n.º 2
0
 public bool CanExchange(IEconomyCurrency currency)
 {
     throw new NotSupportedException();
 }
Ejemplo n.º 3
0
 public decimal ExchangeTo(decimal amount, IEconomyCurrency targetCurrency)
 {
     throw new NotSupportedException();
 }
Ejemplo n.º 4
0
 public decimal Exchange(double amount, IEconomyCurrency targetCurrency) => throw new NotSupportedException("Vanilla currencies may not exchange with each-other.");
Ejemplo n.º 5
0
 public bool CanExchange(IEconomyCurrency currency) => false;
Ejemplo n.º 6
0
 public decimal ExchangeTo(decimal amount, IEconomyCurrency targetCurrency) => throw new NotImplementedException();
Ejemplo n.º 7
0
 public Task <bool> CreateAccountAsync(IUser owner, string name, IEconomyCurrency currency, out IEconomyAccount account)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 8
0
 public bool CreateAccount(IIdentity owner, string name, IEconomyCurrency currency, out IEconomyAccount account) => throw new NotSupportedException("You may not create vanilla accounts.");