Setting up the Server - TheSwerik/Swerver GitHub Wiki
- If you have not already, create a Console-App Project for your Server. (Any other UI is not supported atm)
- Either add Swerver.Server with NuGet or download from GitHub
- Inherit from
GameLogic
and write your Game-Logic in theUpdate
Method. - In your Main-Method Call
ServerStarter.Start(gameLogic);
with your inherited GameLogic class. - For Server sending, write methods that look like
ServerSend
Welcome
andUdpTest
. - For Server receiving, add methods to the Servers
PacketHandlers
. Method Examples areServerHandler
'sWelcomeReceived
andUdpTestReceived
.
Next up: Setting up the Client