api:comp_resource_generator
Table of Contents
COMP_RESOURCE_GENERATOR
Category: Component
Parent class: COMPONENT
Properties
GrowRate
MaxQuantity
- Expected:
integer value
- Default value:
1000
Functions
getResourceGeneratorData
BUILDING_FUNCTION_RESOURCE_GENERATOR getResourceGeneratorData()
setResourceGeneratorData
void setResourceGeneratorData(resourceGeneratorData)
Name | Type | Description |
---|---|---|
resourceGeneratorData | BUILDING_FUNCTION_RESOURCE_GENERATOR |
setMaxQuantity
void setMaxQuantity(maxQuantity [, addDifference])
Name | Type | Description |
---|---|---|
maxQuantity | integer_and_unsigned_integer | |
addDifference | boolean | If true, we will add/substract the current inventory with the difference between current max quantity and maxQuantity . |
getResourceGenerated
RESOURCE getResourceGenerated()
api/comp_resource_generator.txt · Last modified: 2024/02/06 13:53 by 127.0.0.1