Skip to main content

UpdateModule.MethodNode

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

One registered update method in an UpdateModule's linked list. RegisterMethod hands it back as an IUnityUpdateMethod handle.

Constructors​

MemberWhat it is
MethodNode()Creates an UpdateModule.MethodNode with default values.

Fields​

MemberWhat it is
Action MethodThe method called each update.
UpdateModule ModuleThe update module this node is registered with.
UpdateModule.MethodNode NextNext node in the module's list.
UpdateModule.MethodNode PreviousPrevious node in the module's list.

Properties​

MemberWhat it is
bool IsRunning { get; private set; }True until the node is deregistered. DeregisterMethod only unlinks running nodes.

Methods​

MemberWhat it is
void Reset()Clears the links and method and marks the node as not running. Called on deregister.

Used in​

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