Skip to main content

RandomState.Disposer

A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Shared IDisposable returned by RandomState.Push, so a using block restores the previous Unity random state when it ends.

Constructors​

MemberWhat it is
Disposer()Creates a RandomState.Disposer with default values.

Methods​

1 private and internal method
MemberWhat it is
private void System.IDisposable.Dispose()Calls RandomState.Pop, putting back the random state saved by the matching Push.

Used in​

Members of other types that take, return or hold a Disposer: