LuaFlowStatistics

class LuaFlowStatistics
get_input_count(string) Gets the total input count for a given prototype.
set_input_count(string, count) Sets the total input count for a given prototype.
get_output_count(string) Gets the total output count for a given prototype.
set_output_count(string, count) Sets the total output count for a given prototype.
input_counts :: dictionary stringarray of uint64 or double [R] List of input counts indexed by name <> value.
output_counts :: dictionary stringarray of uint64 or double [R] List of output counts indexed by name <> value.
force :: LuaForce [R] The force these statistics belong to.
valid :: boolean [R] Is this object valid?

Encapsulates statistic data for different parts of the game.

get_input_count(string)

Gets the total input count for a given prototype.

Parameters
string: The prototype name.
set_input_count(string, count)

Sets the total input count for a given prototype.

Parameters
string: The prototype name.
count :: uint64 or double: The new count. The type depends on the instance of the statistics.
get_output_count(string)

Gets the total output count for a given prototype.

Parameters
string: The prototype name.
set_output_count(string, count)

Sets the total output count for a given prototype.

Parameters
string: The prototype name.
count :: uint64 or double: The new count. The type depends on the instance of the statistics.
input_counts :: dictionary stringarray of uint64 or double [Read-only]

List of input counts indexed by name <> value.

output_counts :: dictionary stringarray of uint64 or double [Read-only]

List of output counts indexed by name <> value.

force :: LuaForce [Read-only]

The force these statistics belong to.