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
GameLogicand write your Game-Logic in theUpdateMethod. - In your Main-Method Call
ServerStarter.Start(gameLogic);with your inherited GameLogic class. - For Server sending, write methods that look like
ServerSendWelcomeandUdpTest. - For Server receiving, add methods to the Servers
PacketHandlers. Method Examples areServerHandler'sWelcomeReceivedandUdpTestReceived.
Next up: Setting up the Client