Please add GetBlocksWithComponent to the Grid Terminal System to support new component-based blocks

Merii shared this feedback 24 hours ago
Not Enough Votes

With new blocks such as the Farming blocks and the Separation Charge, there's not a good way to get them without iterating over all FunctionalBlocks on the grid and passing a custom check to test for the component with "block.Components.Has<T>". This is both inefficient and bloats the instruction counts/lambda calls. Please add a GetBlocksWithComponent method that's analogous to GetBlocksOfType that allows us to quickly filter for blocks with a specific component type.

Leave a Comment
 
Attach a file