Skip to main content

InGameInspector.InGameTool

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

Private base for the debug tools on the in-game inspector pickup (LOD tools, teleporters, cloner, console command runner and others). The inspector forwards input to the selected tool.

Constructors​

MemberWhat it is
InGameTool(InGameInspector inspector)Creates an InGameInspector.InGameTool from inspector.

Properties​

MemberWhat it is
abstract string Name { get; }Display name of the tool.
protected InGameInspector Inspector { get; set; }The inspector that owns the tool.

Methods​

MemberWhat it is
abstract void Disable()Called when the inspector is let go or destroyed.
abstract void Enable(Interactable pickup, Interactor interactor)Called when a player grabs the inspector with this tool selected.
abstract void PressClearAsync()Runs the tool's main action, from the inspector's clear button.
abstract void PressDown()Handles the down button, often to change a value or step back.
abstract void PressUp()Handles the up button, often to change a value or step forward.
abstract void ReceiveAngle(float angle)Receives the swipe rotation angle while the touchpad is held.
abstract void ReceiveInput(PlayerInput controller)Receives the controller input when teleport is pressed.
virtual void Serialize(Stream stream)Writes or reads tool data for the inspector's sync message. The command runner uses it to run its command on the server.
abstract void Update()Called every frame while held, usually to update the display text.

Used in​

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