api:taxation_function
Table of Contents
TAXATION_FUNCTION
Properties
MinimalTimeBetweenVisits
Texture
NameKey
TaxedNameKey
DescriptionKey
CategoryKey
IsActiveByDefault
IsOtherTax
- Type:
boolean
- Expected:
boolean value
- Default value:
true
Functions
init
void init(instTaxationFunction)
Name | Type | Description |
---|---|---|
instTaxationFunction | InstTaxationFunction |
finalize
void finalize(instTaxationFunction)
Function called when taxation function is removed. You can cleanup components added during init (except TaxCollectables, those will be managed by the system).
Name | Type | Description |
---|---|---|
instTaxationFunction | InstTaxationFunction |
collect
InstTaxationTransactionCollectInfo collect(compTaxCollectable)
Function called every frame to compute how much to cumulate.
Name | Type | Description |
---|---|---|
compTaxCollectable | CompTaxCollectable |
getMaximumAmountToCollect
integer getMaximumAmountToCollect(compTaxCollectable)
Name | Type | Description |
---|---|---|
compTaxCollectable | CompTaxCollectable |
getMinimalTimeBetweenVisits
getTaxedCount
integer getTaxedCount(instTaxationFunction)
Name | Type | Description |
---|---|---|
instTaxationFunction | InstTaxationFunction |
api/taxation_function.txt · Last modified: 2023/10/02 13:55 by 127.0.0.1