Table of Contents

Interface IWorldManager

Namespace
Obsidian.API
Assembly
Obsidian.API.dll
public interface IWorldManager : IAsyncDisposable
Inherited Members

Properties

DefaultWorld

IWorld DefaultWorld { get; }

Property Value

IWorld

GeneratingChunkCount

int GeneratingChunkCount { get; }

Property Value

int

LoadedChunkCount

int LoadedChunkCount { get; }

Property Value

int

ReadyToJoin

bool ReadyToJoin { get; }

Property Value

bool

RegionCount

int RegionCount { get; }

Property Value

int

WorldGenerators

Dictionary<string, Type> WorldGenerators { get; }

Property Value

Dictionary<string, Type>

Methods

FlushLoadedWorldsAsync()

Task FlushLoadedWorldsAsync()

Returns

Task

GetAvailableWorlds()

IReadOnlyCollection<IWorld> GetAvailableWorlds()

Returns

IReadOnlyCollection<IWorld>

TickWorldsAsync()

Task TickWorldsAsync()

Returns

Task

TryGetWorld(string, out IWorld?)

bool TryGetWorld(string name, out IWorld? world)

Parameters

name string
world IWorld

Returns

bool

TryGetWorld<TWorld>(string, out TWorld?)

bool TryGetWorld<TWorld>(string name, out TWorld? world) where TWorld : IWorld

Parameters

name string
world TWorld

Returns

bool

Type Parameters

TWorld