Skip to main content

InGameInspector.MineStairsPointer

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

Debug inspector tool that points a compass on the inspector at the cave layer portal up or down from the layer you are in.

Constructors​

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

Fields​

5 private and internal fields
MemberWhat it is
private int currentLayerLayer identifier of the cave layer you are in.
private Transform currentPortalTransform of the portal the compass points at.
private CaveLayerStreamer currentStreamerThe cave layer streamer on the current chunk, or null outside the caves.
private int direction1 for up, -1 for down. Starts at 0, which acts as down.
private CaveLayerManager managerThe scene's CaveLayerManager, found when the tool is built.

Properties​

MemberWhat it is
override string Name { get; }Shown on the inspector as "Stairs down pointer".

Methods​

MemberWhat it is
override void Disable()Stops listening for chunk changes and hides the compass.
override void Enable(Interactable pickup, Interactor interactor)Listens for the local player's chunk changes and checks the current chunk.
override void PressClearAsync()Does nothing for this tool.
override void PressDown()Points the compass down to the next layer's portal.
override void PressUp()Points the compass up to this layer's portal.
override void ReceiveAngle(float angle)Does nothing for this tool.
override void ReceiveInput(PlayerInput controller)Does nothing for this tool.
override void Update()Turns the compass towards the portal and shows the direction and layer, or a waiting or not in caves message.
2 private and internal methods
MemberWhat it is
private void ChangedChunk(Chunk chunk)Called when the local player changes chunk. Picks up the chunk's CaveLayerStreamer and finds the portal, or hides the compass.
private bool GetPortal()Finds the target portal: this layer's portal when pointing up, the next layer's when pointing down. Returns false if not loaded.