Anuken / Mindustry-Suggestions

Repository for Mindustry suggestions and feedback
128 stars 58 forks source link

New World Processor Function: Retrieve Buildings and Units within a Region #5157

Open CutePillow opened 1 month ago

CutePillow commented 1 month ago

Describe the content or mechanics you are proposing.

It's a new function for world-processor which can get buildings, units and players within a region. It can called "region fetch".

It can select the shape of the area to be retrieved, such as circles and rectangles

Set the bottom left corner coordinates, height, and width of the rectangle in rectangular mode.

Set the center and radius in circular mode.

It can retrieve the number of targets within a region like a 'fetch', and can search for specific targets by serial number.

It can retrieve the targets of all teams or specific teams.

Describe how you think this content will improve the game. If you're proposing new content, mention how it may add more gameplay options or how it will fill a new niche.

If this is available, map editors can quickly and accurately obtain information about targets within their range, thereby avoiding wasting a lot of world processor computing power to eliminate unnecessary targets. It will also make map production more diverse and possible, improving game playability and gaming experience

Before making this issue, check the boxes below to confirm that you have acknowledged them.

Anuken commented 1 month ago

Would be nice to have, but there is currently no system for storing lists of output results, and such a system would need to be carefully planned out. I want to avoid systems that simply allocate a new list every query.