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