Show / Hide Table of Contents

Class SettlementTaxes

Defimes a set of taxes for a single settlement

Inheritance
System.Object
SettlementTaxes
Implements
ISettlementTaxes
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
Namespace: Eco.Gameplay.Economy
Assembly: Eco.Gameplay.dll
Syntax
public class SettlementTaxes : Object, ISettlementTaxes, IController, IViewController, IHasUniversalID, INotifyPropertyChanged

Constructors

SettlementTaxes()

Declaration
public SettlementTaxes()

Fields

TaxesChanged

Declaration
public ThreadSafeAction TaxesChanged
Field Value
Type Description
ThreadSafeAction

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
public bool AnyTaxes()
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
Type Description
LocString

GetContractTax(Currency)

Declaration
public float GetContractTax(Currency currency = null)
Parameters
Type Name Description
Currency currency
Returns
Type Description
System.Single

GetCraftingFeeTax(Currency)

Declaration
public float GetCraftingFeeTax(Currency currency = null)
Parameters
Type Name Description
Currency currency
Returns
Type Description
System.Single

GetCurrencyExchangeTax(Currency)

Declaration
public float GetCurrencyExchangeTax(Currency currency = null)
Parameters
Type Name Description
Currency currency
Returns
Type Description
System.Single

GetDirectTransferTax(Currency)

Declaration
public float GetDirectTransferTax(Currency currency = null)
Parameters
Type Name Description
Currency currency
Returns
Type Description
System.Single

GetSalesTax(Currency)

Declaration
public float GetSalesTax(Currency currency = null)
Parameters
Type Name Description
Currency currency
Returns
Type Description
System.Single

GetSelfDirectTransferTax(Currency)

Declaration
public float GetSelfDirectTransferTax(Currency currency = null)
Parameters
Type Name Description
Currency currency
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
Type Name Description
Settlement settlement

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
Type Description
LocString

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
Type Description
LocString

UpdateOldTaxes()

Declaration
public void UpdateOldTaxes()

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

ISettlementTaxes
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾