I'm new to gamedev and will appreciate if you can point me to common practices in architecture.
Let's assume, we have a multiplayer game. Same instance is present in various contexts:
- data: for database operations or displayonly stuff we don't need any mechanics, just relations and data
- serverside validation: now we need mechanics, but don't need some fields like descriptions/icons/etc, and desperately need optimization
- clientside runtime: now we need everything including lots of media, but as entity/component systems
and lots of other stuff like networking, IOC configs, build systems, etc.
So, is there any framework to start with, which allows to write code / configure things only once, yet get everything mentioned as result?