Allow setting custom animations for inserters
Posted: Mon Jul 22, 2019 3:22 pm
If the animations field of an inserter prototype is not null use that instead off the current inserter drawing system.
Usecase: I d like to create "loading cranes" for the cargo sips mod that dont use the standard inserter animations.
I know that inserters next to swinging forth and back also have this part where they follow items on a belt before pickup, and that this behaviour is hard/impossible to archive with custom animations, i wouldnt care about that though and would only need the animation to start playing once the inserter starts moving, stop at the drop off position and continue as soon as the inserter swings back, stop there again, and start again on the next swing and so on.
right now i would have to constantly monitor the state off an inserter to achieve the same behavior using rendering.draw_animation, which cant be good performance wise.
Usecase: I d like to create "loading cranes" for the cargo sips mod that dont use the standard inserter animations.
I know that inserters next to swinging forth and back also have this part where they follow items on a belt before pickup, and that this behaviour is hard/impossible to archive with custom animations, i wouldnt care about that though and would only need the animation to start playing once the inserter starts moving, stop at the drop off position and continue as soon as the inserter swings back, stop there again, and start again on the next swing and so on.
right now i would have to constantly monitor the state off an inserter to achieve the same behavior using rendering.draw_animation, which cant be good performance wise.