Class SettlementTaxes
Defimes a set of taxes for a single settlement
Inheritance
System.Object
SettlementTaxes
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public class SettlementTaxes : Object, ISettlementTaxes, IController, IViewController, IHasUniversalID, INotifyPropertyChanged
Constructors
SettlementTaxes()
Declaration
Fields
TaxesChanged
Declaration
public ThreadSafeAction TaxesChanged
Field Value
Properties
ContractTax
Declaration
public float ContractTax { get; }
Property Value
Type |
Description |
System.Single |
|
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
Type |
Description |
System.Int32 |
|
CraftingFeeTax
Declaration
public float CraftingFeeTax { get; }
Property Value
Type |
Description |
System.Single |
|
CurrencyExchangeTax
Declaration
public float CurrencyExchangeTax { get; }
Property Value
Type |
Description |
System.Single |
|
DirectTransferTax
Declaration
public float DirectTransferTax { get; }
Property Value
Type |
Description |
System.Single |
|
PropertyTax
Declaration
public float PropertyTax { get; }
Property Value
Type |
Description |
System.Single |
|
SalesTax
Declaration
public float SalesTax { get; }
Property Value
Type |
Description |
System.Single |
|
SelfDirectTransferTax
Declaration
public float SelfDirectTransferTax { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
AnyTaxes()
Return true if any tax rate is set.
Declaration
Returns
Type |
Description |
System.Boolean |
|
AssignAll(Single)
Set the value of all taxes
Declaration
public void AssignAll(float val)
Parameters
Type |
Name |
Description |
System.Single |
val |
|
DescribeTaxes()
Get a table of all the various types of taxes.
Declaration
public LocString DescribeTaxes()
Returns
GetContractTax(Currency)
Declaration
public float GetContractTax(Currency currency = null)
Parameters
Returns
Type |
Description |
System.Single |
|
GetCraftingFeeTax(Currency)
Declaration
public float GetCraftingFeeTax(Currency currency = null)
Parameters
Returns
Type |
Description |
System.Single |
|
GetCurrencyExchangeTax(Currency)
Declaration
public float GetCurrencyExchangeTax(Currency currency = null)
Parameters
Returns
Type |
Description |
System.Single |
|
GetDirectTransferTax(Currency)
Declaration
public float GetDirectTransferTax(Currency currency = null)
Parameters
Returns
Type |
Description |
System.Single |
|
GetSalesTax(Currency)
Declaration
public float GetSalesTax(Currency currency = null)
Parameters
Returns
Type |
Description |
System.Single |
|
GetSelfDirectTransferTax(Currency)
Declaration
public float GetSelfDirectTransferTax(Currency currency = null)
Parameters
Returns
Type |
Description |
System.Single |
|
SetContractTax(Single)
Declaration
public void SetContractTax(float val)
Parameters
Type |
Name |
Description |
System.Single |
val |
|
SetCraftingFeeTax(Single)
Declaration
public void SetCraftingFeeTax(float val)
Parameters
Type |
Name |
Description |
System.Single |
val |
|
SetCurrencyExchangeTax(Single)
Declaration
public void SetCurrencyExchangeTax(float val)
Parameters
Type |
Name |
Description |
System.Single |
val |
|
SetDirectTransferTax(Single)
Declaration
public void SetDirectTransferTax(float val)
Parameters
Type |
Name |
Description |
System.Single |
val |
|
SetPropertyTax(Single)
Declaration
public void SetPropertyTax(float val)
Parameters
Type |
Name |
Description |
System.Single |
val |
|
SetSalesTax(Single)
Declaration
public void SetSalesTax(float val)
Parameters
Type |
Name |
Description |
System.Single |
val |
|
SetSelfDirectTransferTax(Single)
Declaration
public void SetSelfDirectTransferTax(float val)
Parameters
Type |
Name |
Description |
System.Single |
val |
|
ShowTaxUpdates(Settlement)
Declaration
public void ShowTaxUpdates(Settlement settlement)
Parameters
SubtotalAndTaxString(String, Currency, Single, Single)
Declaration
public static LocString SubtotalAndTaxString(string format, Currency currency, float total, float taxRate)
Parameters
Type |
Name |
Description |
System.String |
format |
|
Currency |
currency |
|
System.Single |
total |
|
System.Single |
taxRate |
|
Returns
TaxesToList()
Declaration
public List<float> TaxesToList()
Returns
Type |
Description |
System.Collections.Generic.List<System.Single> |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
TotalAndTaxString(String, Currency, Single, Single)
Declaration
public static LocString TotalAndTaxString(string format, Currency currency, float total, float taxRate)
Parameters
Type |
Name |
Description |
System.String |
format |
|
Currency |
currency |
|
System.Single |
total |
|
System.Single |
taxRate |
|
Returns
UpdateOldTaxes()
Declaration
public void UpdateOldTaxes()
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods