Module Prototype
Description
Module Status: Work in progress.
Usage:
local Prototype = require('__eradicators-library__/erlib/factorio/Prototype')()
Section
get_absolute_order(object_name, name) | Merges object_name, group, subgroup, order and name. |
Section
- get_absolute_order(object_name, name)
-
Merges object_name, group, subgroup, order and name.
Used for sorting arrays or arbitary prototype combinations.
Memoized: Reads each prototype only once per session. Subsequent access is native lua table lookup speed.
Parameters:
- object_name
string
The runtime-type of the desired prototype.
Valid input formats are:
"LuaVirtualSignalPrototype"
,"LuaVirtualSignal"
,"VirtualSignal"
or"virtual_signal"
. - name string
Returns:
- object_name
string
The runtime-type of the desired prototype.
Valid input formats are: