NodeWorld

WorldNetworkRequest

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

csharp
public sealed class WorldNetworkRequest

Namespace NodeWorld.SDK.Client.Flux.

A world asks to contact a hostname the player has not answered yet: one request per hostname (every request of the world to it waits for the same answer). The window and the notification answer it; leaving the world drops it.

Properties

WorldId

csharp
public string WorldId { get; }

The world that asks (its ID; the client shows its name).

Hostname

csharp
public string Hostname { get; }

What is asked: the domain (subdomains included) or the IP address, with its port when it is not the standard one.

LocalNetwork

csharp
public bool LocalNetwork { get; }

An address of this machine or of the local network written as it is by the world: the window warns (router, NAS…).

IsSettled

csharp
public bool IsSettled { get; }

Answered or dropped.

Choice

csharp
public WorldNetworkChoice? Choice { get; }

The player's answer once settled; null while it waits, and for a request dropped because the world left.

Methods

Answer

csharp
public void Answer(WorldNetworkChoice choice)

The player's answer (from the window or the notification; the first one counts).