There are some bits of Factorio source code on github — https://gist.github.com/Rseding91
and https://old.reddit.com/r/factorio/comments/13bsf3s/technical... is fascinating reading (things like: they used doubly linked lists, and multiple inheritance)