Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Setting up the Server

Swerik edited this page Jul 3, 2020 · 2 revisions
  • 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 the Update Method.
  • In your Main-Method Call ServerStarter.Start(gameLogic); with your inherited GameLogic class.
  • For Server sending, write methods that look like ServerSend Welcome and UdpTest.
  • For Server receiving, add methods to the Servers PacketHandlers. Method Examples are ServerHandler's WelcomeReceived and UdpTestReceived.

Next up: Setting up the Client

Clone this wiki locally