This is a try at being able to use sockets for placing buildings.
Feedback is welcome and anyone who wants to give it a shot by themself is encouraged to commandeer ;)
---
https://github.com/0ADMods/building-sockets/blob/master/simulation/components/BuildingSocket.js
https://gist.github.com/smiley3/001f2fc2dd47eb52ec361ff2ff0e1fb0