RiptideNetworking / Riptide

Lightweight C# networking solution for multiplayer games.
https://riptide.tomweiland.net
MIT License
1.04k stars 139 forks source link

Seperate server and client library #138

Closed bberka closed 1 week ago

bberka commented 3 weeks ago

I think it would be better if you seperate this library to 3 packages

  1. Shared
  2. Client
  3. Server

Because what i see is when you do multiplayer you need db and more secure stuff happening and i don't see any reason why client need that data as well. If there is a reason that i am not aware of i like to learn

tom-weiland commented 3 weeks ago

I'm not sure I understand the problem...

when you do multiplayer you need db and more secure stuff happening and i don't see any reason why client need that data as well.

So don't include it in the client build...? There is no "database stuff" in this library, so that's entirely in the hands of each dev to do as they think is best for their project.

The Riptide library is small enough that there's no real size/import speed benefit to splitting it up into several packages, and I don't see any other benefits to doing it either. It would just make it more annoying tedious to install, especially as it's not uncommon for a project to need both a Server and a Client instance—the most efficient way to develop a game is to have both the client and server logic in the same project and to just exclude sensitive stuff from client builds.

Perhaps I'm missing something, but it sounds like you may have a misunderstanding of what Riptide is and what purpose it fulfils?