You can look at the shared source game engines. https://github.com/epicGames/unrealEngine/ (need to sign license)