An abstract class in Root.Township, the global namespace.
Base for client game modes that join a server. Sets up the client's network scene for the server connection.
Constructors
Fields
| Member | What it is |
|---|
protected Connection connection | Connection to the server. |
Properties
| Member | What it is |
|---|
override bool IsClient { get; } | Always true. |
override bool IsServer { get; } | Always false. |
Methods
| Member | What it is |
|---|
protected void Empty(Connection connection, Stream stream) | Writes nothing. Used as the body of messages that carry no data. |
protected async Task SetupClientScene(JoinResult result) | Initializes the current network scene with the connection's socket and adds the connection to it. |
1 private and internal method