Closed berndrakell closed 6 months ago
Also Closes #97 Added functionality to the SelectionHandler.gd, which now allows for selecting units of the same type with a double click.
Also adds property "type" to units, which equals their script/resource names (e.g. 'Tank')
Thank you! The change conceptually looks good to me - I'll make a few adjustments on top of that like changing names or extracting helper functions. Anyway, I'll merge it in upcoming days. Btw. In the future please open one PR per feature - it makes reviewing much easier :)
Thanks for the feedback. Yes I'll not do that again. Tbh I didn't know new commits automatically get joined in PRs - I was never so busy :D
Closes #95 Also adds a property location to each unit, which holds the x and z value on the map. This property is often used in different scripts, so defining it in the unit itself is easier.