Logistic section of a particular LuaLogisticPoint or LuaConstantCombinatorControlBehavior.
LuaEntityunknownfalseThe LuaEntity owner of this LuaLogisticSection.
uint32unknownfalseThe section index of this section.
Array<LogisticFilter>Array<LogisticFilter>falseThe logistic filters for this section.
This can only be written to when the section is manual.
uint32unknownfalseAmount of filters this section has
stringstringfalseThe group this section belongs to.
An empty string when in no group.
This can only be written to when the section is manual.
defines.logistic_section_typeunknownfalseThe type of this logistic section. Sections that are not manual are controlled by game itself and may not be allowed to be changed by script.
booleanunknownfalseShortcut to check whether LuaLogisticSection::type is equal to manual.
booleanbooleanfalseWhether this section is active. This can only be written to when the section is manual.
floatfloatfalseMultiplier applied to all filters before they are used by game. This can only be written to when the section is manual.
booleanunknownfalseIs this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be false. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
stringunknownfalseThe class name of this object. Available even when valid is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
LuaLogisticSection.set_slot(slot_index: LogisticFilterIndex, filter: LogisticFilter) -> LogisticFilterIndex?
logisticSection.set_slot(slot_index, filter)
takes_table: falsetable_optional: falseSets logistic request and auto-trash slot to the given value.
This will silently fail if personal logistics are not researched yet.
This can only be called when the section is manual.
slot_index: LogisticFilterIndex — Index of a slot to set.filter: LogisticFilter — The details of the filter to set.LogisticFilterIndex? — The existing index for the given filter or nil if the filter was successfully set.LuaLogisticSection.get_slot(slot_index: LogisticFilterIndex) -> LogisticFilter
logisticSection.get_slot(slot_index)
takes_table: falsetable_optional: falseGets current settings of logistic request and auto-trash from the given slot.
slot_index: LogisticFilterIndex — Index of a slot to read.LogisticFilterLuaLogisticSection.clear_slot(slot_index: LogisticFilterIndex)
logisticSection.clear_slot(slot_index)
takes_table: falsetable_optional: falseClears the logistic request and auto-trash from the given slot.
This can only be called when the section is manual.
slot_index: LogisticFilterIndex — Index of a slot to clear.