Table of Contents

Class GameThread

Namespace
Uncreated.Warfare.Util
Assembly
Uncreated.Warfare.dll

Utility for quickly checking if the current thread is the game thread.

public static class GameThread
Inheritance
GameThread
Inherited Members

Properties

IsCurrent

true when fetched on the main thread, otherwise false.

public static bool IsCurrent { get; }

Property Value

bool

Remarks

Much more effecient than IsGameThread(Thread).

Methods

AssertCurrent()

Throw an error if this function isn't ran on the main thread.

public static void AssertCurrent()

Exceptions

GameThreadException

Not on main thread.

AssertCurrent(string)

Throw an error if this function isn't ran on the main thread.

public static void AssertCurrent(string feature)

Parameters

feature string

Exceptions

GameThreadException

Not on main thread.