CoreServer<TInitialServerWorld, TServerWorldManager>

Warning

This documentation is for an implementation of a service. This class is not meant to be used directly; instead use the Protogame.CoreServer{TInitialServerWorld} service via dependency injection to access this functionality.

Information documented here may not be up to date.

class CoreServer<TInitialServerWorld, TServerWorldManager> : Protogame.Server, Protogame.ICoreServer, System.IDisposable

The implementation of Protogame’s base server class. In previous versions of Protogame, this acted as the base class for the developer’s Game class. However newer games written in Protogame should use T:Protogame.CoreServer`1 instead, as this correctly sets games to use the default server world manager, which sets TWorldManager to be T:Protogame.DefaultServerWorldManager automatically.

Type Parameters:
 
  • TInitialServerWorld – The initial server world class to start the server with.
  • TServerWorldManager – The server world manager class for this game.
readonly Protogame.IServerContext ServerContext
readonly IUpdateContext UpdateContext
readonly bool Running
public void Dispose()
public void Stop()
public void Run()
public void Setup()