Nebula
Core

NebulaRuntime

Process-wide role context.

generated from the sources
Static class in namespace Nebula · Packages/com.1by3.nebula/Runtime/Core/NebulaRuntime.cs
public static class NebulaRuntime

Process-wide role context. A process is either a worker (server) or a client, never both.

Properties

IsServer

public static bool IsServer { get; }

IsClient

public static bool IsClient { get; }

LocalClientId

public static ulong LocalClientId { get; }

LocalIdentity

public static string LocalIdentity { get; } = "";

Client side: the local player's identity across sessions (PlayerIdentity), once welcomed. Empty before that and on workers.

LocalWorkerId

public static string LocalWorkerId { get; } = "";

LocalWorkerIndex

public static ushort LocalWorkerIndex { get; }

RpcSink

public static IRpcSink RpcSink { get; }

Config

public static NebulaConfig Config { get; }

On this page