Suggestion: Add LuaEntity: get_all_request_slot()

Things that already exist in the current mod API
phidias0303
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Apr 14, 2020 8:15 pm
Contact:

Suggestion: Add LuaEntity: get_all_request_slot()

Post by phidias0303 »

Instead of looping every slot in Lua, maybe we can have something that doesn't need to.
it can be like {slot: item}, like {1: IronPlate, 2: CopperPlate} ...
So you can use the result to change the set request slot.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3078
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Suggestion: Add LuaEntity: get_all_request_slot()

Post by boskid »

That already exists under LuaLogisticPoint::filters (read), you just need to obtain LuaLogisticPoint from LuaEntity by using LuaEntity::get_logistic_point (method)
phidias0303
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Apr 14, 2020 8:15 pm
Contact:

Re: Suggestion: Add LuaEntity: get_all_request_slot()

Post by phidias0303 »

ok thx
Post Reply

Return to “Already exists”