A class in Root.Township, the global namespace.
Game mode that runs a server in the same process and joins it as a client, for local testing. Started from the menu with an IServerAccess.
Constructors
Fields
1 private and internal field
| Member | What it is |
|---|
private IServerAccess serverAccess | Server details the local server is started with. |
Properties
| Member | What it is |
|---|
override bool IsServer { get; } | Always true; this process is the server. |
Methods
| Member | What it is |
|---|
override async Task<bool> ActivateAsync() | Loads the game scene, starts a local server on port 1757, connects to it and sets up the client scene. Returns false on failure. |
override async Task StopModeAsync(string reason) | Fades out, disconnects, stops the local server and the network, and clears IsLocalTest. |