Class Server
The instantiable RageCoop server class
Inherited Members
Namespace: RageCoop.Server
Assembly: RageCoop.Server.dll
Syntax
public class Server
Constructors
Server(Settings, Logger)
Instantiate a server.
Declaration
public Server(Settings settings, Logger logger = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Settings | settings | |
| Logger | logger |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
Fields
Version
Get the current server version
Declaration
public static readonly Version Version
Field Value
| Type | Description |
|---|---|
| Version |
Properties
API
The API for controlling server and hooking events.
Declaration
public API API { get; }
Property Value
| Type | Description |
|---|---|
| API |
Methods
Start()
Spawn threads and start the server
Declaration
public void Start()
Stop()
Terminate threads and stop the server
Declaration
public void Stop()