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.
- Listed in Global namespace: I to L
- Nested in
InGameInspector - Inherits or implements
InGameInspector.InGameTool
Constructors
| Member | What it is |
|---|---|
MineStairsPointer(InGameInspector inspector) | Creates an InGameInspector.MineStairsPointer from inspector. |
Fields
5 private and internal fields
| Member | What it is |
|---|---|
private int currentLayer | Layer identifier of the cave layer you are in. |
private Transform currentPortal | Transform of the portal the compass points at. |
private CaveLayerStreamer currentStreamer | The cave layer streamer on the current chunk, or null outside the caves. |
private int direction | 1 for up, -1 for down. Starts at 0, which acts as down. |
private CaveLayerManager manager | The scene's CaveLayerManager, found when the tool is built. |
Properties
| Member | What it is |
|---|---|
override string Name { get; } | Shown on the inspector as "Stairs down pointer". |
Methods
| Member | What 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
| Member | What 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. |