NodeWorld

PlayerData

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

csharp
public static class PlayerData

Namespace NodeWorld.Flux.

Values a world keeps for the local player between visits (kept by the client, for this NodeWorld account and this world): a language chosen, a volume...

Methods

SetInt

csharp
public static void SetInt(string key, int value)

Keeps an int under key.

SetFloat

csharp
public static void SetFloat(string key, float value)

Keeps a float under key.

SetBool

csharp
public static void SetBool(string key, bool value)

Keeps a bool under key.

SetString

csharp
public static void SetString(string key, string value)

Keeps a string under key (a key has no line break).

TryGetInt

csharp
public static bool TryGetInt(string key, out int value)

The int kept under key: true when the key holds an int.

TryGetFloat

csharp
public static bool TryGetFloat(string key, out float value)

The float kept under key: true when the key holds a float.

TryGetBool

csharp
public static bool TryGetBool(string key, out bool value)

The bool kept under key: true when the key holds a bool.

Delete

csharp
public static void Delete(string key)

Forgets key.