I have a bit of a tricky setup that I need a bit of help with.
I intend to run 3 applications with TNet3:
- Unity as a client
- A standalone application as lobby Server
- A standalone application as game server
I want to tie those together by having one common library that holds the game logic, the IBinarySerializable objects etc.
My challenge now is that I need TNet3 in all four VS projects. I would need the lobby and the game server to use a build with the "STANDALONE" compilation symbol and Unity to use the standard unity build. The common library could technically use either of those. With other libraries in this kind of setup, I used to add the source to the common library and the problem was solved by referencing those in the main project. But since there is conditional compilation involved and the common library is not supposed to have reference to parts of Unity or the server project, I am not sure how to proceed.
Can I solve this somehow? I don't want to start working with symlinks or nested folder structures referencing the same files since that leads to a world of hurt in case you need to refactor anything. My ideal scenario is having everything in a single place and using it from there.