WAReborn / WorldsAdriftReborn

65 stars 14 forks source link

Write a game server #24

Closed sp00ktober closed 1 year ago

sp00ktober commented 2 years ago

For now we did implement the server side directly inside our SpatialOS replacement, but in the end we need to have a real server.

It needs to be able to communicate with our SpatialOS replacement but also with the game. Thats why we will write it in C# but leave all networking within our SpatialOS replacement and expose needed methods. Those can then be called by our C# code just as the game does it. One benefit from writing the server in C# is that we can directly reference the games dll's and make use of their structs.

For networking we will use ENet (until we reach some limits and need something else, if that happens)

sp00ktober commented 1 year ago

basic game server implemented in b19199ecbd9d01ee40df355a40681000573e3aee it handles clients using ENet through our SDK and supports loading and spawning of one island and a player as well as responding to component requests by those spawned entites. The server will initialize and serialize those components and send them to the game client through the SDK.