Logistic sections of an entity.
Array<LuaLogisticSection>unknownfalseAll logistic sections of this entity.
uint32unknownfalseAmount of logistic sections this entity has.
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.
LuaLogisticSections.add_section(group?: string) -> LuaLogisticSection?
logisticSections.add_section()
takes_table: falsetable_optional: falseAdds a new logistic section if possible.
group?: string — The group to assign this section to.LuaLogisticSection? — Logistic section if added.LuaLogisticSections.remove_section(section_index: uint32) -> boolean
logisticSections.remove_section(section_index)
takes_table: falsetable_optional: falseRemoves the given logistic section if possible. Removal may fail if the section index is out of range or the section is not manual.
section_index: uint32 — Index of the section.boolean — Whether section was removed.LuaLogisticSections.get_section(section_index: uint32) -> LuaLogisticSection?
logisticSections.get_section(section_index)
takes_table: falsetable_optional: falseGets section on the selected index, if it exists.
section_index: uint32 — Index of the section.LuaLogisticSection?