You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has impact on how we draw stuff. Currently the MapRenderer selects all cells which to draw. Then it basically calls the Renderer to draw them.
However, since structures are only now drawn from the 'top left cell' and the top left cell might not be visible... it may not draw the structure.
So this needs a different approach.
One way would be to select all structures to draw as we go through all cells. This would basically imply a StructureRenderer which uses the same logic but checks if structures are present. If so it will render those, but it also has to figure out the top left. Now it s directly attached to the Cell class which makes Cell equivalent of a MapCell for drawing Structures.
It is handy to have a reference to a structure from a Cell but figuring out what the coordinates are for a structure might be worthy to store somewhere else?
Ie. Place a Const Yard and scroll so that the topleft of the structure is not visible.
I would expect the lower / right half to be drawn. This does not happen.
The text was updated successfully, but these errors were encountered: