get_input_count(name) | → uint64 or double | Gets the total input count for a given prototype. |
Gets the total input count for a given prototype. | ||
set_input_count(name, count) | Sets the total input count for a given prototype. | |
Sets the total input count for a given prototype. | ||
get_output_count(name) | → uint64 or double | Gets the total output count for a given prototype. |
Gets the total output count for a given prototype. | ||
set_output_count(name, count) | Sets the total output count for a given prototype. | |
Sets the total output count for a given prototype. | ||
get_flow_count{name=…, input=…, precision_index=…, sample_index?=…, count?=…} | → double | Gets the flow count value for the given time frame. [...] |
Gets the flow count value for the given time frame. [...] | ||
on_flow(name, count) | Adds a value to this flow statistics. | |
Adds a value to this flow statistics. | ||
clear() | Reset all the statistics data to 0. | |
Reset all the statistics data to 0. | ||
help() | → string | All methods and properties that this object supports. |
All methods and properties that this object supports. | ||
input_counts [R] | :: dictionary[string → uint64 or double] | List of input counts indexed by prototype name. [...] |
List of input counts indexed by prototype name. [...] | ||
output_counts [R] | :: dictionary[string → uint64 or double] | List of output counts indexed by prototype name. [...] |
List of output counts indexed by prototype name. [...] | ||
force [R] | :: LuaForce? | The force these statistics belong to. [...] |
The force these statistics belong to. [...] | ||
valid [R] | :: boolean | Is this object valid? [...] |
Is this object valid? [...] | ||
object_name [R] | :: string | The class name of this object. [...] |
The class name of this object. [...] |
name | :: string | The prototype name. |
The prototype name. | ||
input | :: boolean | Read the input values or the output values |
Read the input values or the output values | ||
precision_index | :: defines.flow_precision_index | The precision range to read. |
The precision range to read. | ||
sample_index | :: uint16? | The sample index to read from within the precision range. If not provided, the entire precision range is read. Must be between 1 and 300 where 1 is the most recent sample and 300 is the oldest. |
The sample index to read from within the precision range. If not provided, the entire precision range is read. Must be between 1 and 300 where 1 is the most recent sample and 300 is the oldest. | ||
count | :: boolean? | If true, the count of items/fluids/entities is returned instead of the per-time-frame value. |
If true, the count of items/fluids/entities is returned instead of the per-time-frame value. |