IWorldService
csharp
public interface IWorldServiceNamespace 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> OnWorldLoadingRaised when a world starts loading.
OnWorldLoadProgress
csharp
event Action<float> OnWorldLoadProgressRaised while the world loads, with its progress from 0 to 1.
OnWorldLoaded
csharp
event Action<WorldInfo> OnWorldLoadedRaised when the world is loaded.
OnWorldLoadFailed
csharp
event Action<string, WorldRefusal> OnWorldLoadFailedRaised when the world could not load, with the reason for the logs and, when its package was refused, why.
OnWorldUnloaded
csharp
event Action OnWorldUnloadedRaised when the world is unloaded.
