ServerDiagnosticsMessage
A static class in Root.Township, Alta.Networking.
Message the server sends to clients that asked for diagnostics: its frame rate and a text message.
- Listed in Networking and servers
Fields
2 private and internal fields
Properties
| Member | What it is |
|---|---|
static float ServerFPS { get; } | Server frame rate from the last message. |
static string ServerMessage { get; } | Text from the last message. |
Methods
| Member | What it is |
|---|---|
static void Serialize(Connection connection, Stream stream) | Writes or reads the FPS (0 to 200, steps of 0.1) and the message. |
static void Set() | Server: sets the FPS from FPSCounter.FPS. |
static void SetMessage(string message) | Sets the text to send. |