NodeWorld

ITelemetryService

La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.

csharp
public interface ITelemetryService

Namespace NodeWorld.Core.

Sends the game's log lines to NodeWorld's API, when telemetry is on.

Properties

Enabled

csharp
bool Enabled { get; }

Telemetry is on.

Methods

SetTokenProvider

csharp
void SetTokenProvider(ITokenProvider tokenProvider)

Gives the service the signed-in player's token, to send with the lines.

Log

csharp
void Log(string severityText, string body, IDictionary<string, object> attributes = null)

Queues a log line with its severity (INFO, WARN, ERROR) and attributes.

Flush

csharp
void Flush()

Sends the queued lines now.