Table of Contents

Interface IGameServer

Namespace
BSGameLib.Server
Assembly
BSGameLib.Server.dll

The game's server: what it does when the server starts, on each tick of the game loop, and when it stops. The game implements it.

public interface IGameServer

Methods

Start()

Runs once when the server starts, after the initializers have run and before the game loop begins.

void Start()

Stop()

Runs once when the server stops, after the game loop has ended and before connections are closed.

void Stop()

Update(TimeSpan)

One tick of the game. The loop calls it sixty times a second, each time with elapsed set to a sixtieth of a second, whatever the real time between calls.

void Update(TimeSpan elapsed)

Parameters

elapsed TimeSpan