Table of Contents

Class RuntimeEnv

Namespace
Vintagestory.API.Config
Assembly
VintagestoryAPI.dll

Information about the runningtime environment

public static class RuntimeEnv
Inheritance
RuntimeEnv
Inherited Members

Fields

DebugOutOfRangeBlockAccess

If true, will print the stack trace on some of the blockaccessor if something attempts to get or set blocks outside of its available chunks

public static bool DebugOutOfRangeBlockAccess

Field Value

bool

DebugSoundDispose

Debug sound memory leaks. No ENV var

public static bool DebugSoundDispose

Field Value

bool

DebugTextureDispose

If TEXTURE_DEBUG_DISPOSE is set, the initial value set here will be overridden

public static bool DebugTextureDispose

Field Value

bool

DebugThreadPool

If true, will print allocation trace whenever a new task was enqueued to the thread pool

public static bool DebugThreadPool

Field Value

bool

DebugVAODispose

If VAO_DEBUG_DISPOSE is set, the initial value set here will be overridden

public static bool DebugVAODispose

Field Value

bool

EnvSearchPathName

The Env variable which contains the OS specific search paths for libarires

public static readonly string EnvSearchPathName

Field Value

string

GUIScale

public static float GUIScale

Field Value

float

IsDevEnvironment

Whether we are in a dev environment or not

public static readonly bool IsDevEnvironment

Field Value

bool

IsWaylandSession

This will only be set to true on Linux when the session is a wayland session This is needed so we can skip adding a app Icon or setting the cursor postion since those are not supported on wayland

public static readonly bool IsWaylandSession

Field Value

bool

MainThreadId

public static int MainThreadId

Field Value

int

OS

The current operating system

public static readonly OS OS

Field Value

OS

ServerMainThreadId

public static int ServerMainThreadId

Field Value

int

Methods

GetLocalIpAddress()

public static string GetLocalIpAddress()

Returns

string

GetOsString()

public static string GetOsString()

Returns

string