NodeWorld

IWorldService

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

csharp
public interface IWorldService

Namespace NodeWorld.Core.

Loads and unloads the world the player enters.

Properties

CurrentWorld

csharp
WorldInfo CurrentWorld { get; }

The world loaded now.

Methods

LoadWorld

csharp
void LoadWorld(string worldId)

Loads the world worldId.

UnloadCurrentWorld

csharp
void UnloadCurrentWorld()

Unloads the current world.

Events

OnWorldLoading

csharp
event Action<WorldInfo> OnWorldLoading

Raised when a world starts loading.

OnWorldLoadProgress

csharp
event Action<float> OnWorldLoadProgress

Raised while the world loads, with its progress from 0 to 1.

OnWorldLoaded

csharp
event Action<WorldInfo> OnWorldLoaded

Raised when the world is loaded.

OnWorldLoadFailed

csharp
event Action<string, WorldRefusal> OnWorldLoadFailed

Raised when the world could not load, with the reason for the logs and, when its package was refused, why.

OnWorldUnloaded

csharp
event Action OnWorldUnloaded

Raised when the world is unloaded.