Skip to main content

MiningEcho.MiningEchoExecution

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

One running mining echo pulse: a sphere that grows from where a tool hit, used by MiningEcho to tell IListenToMiningEcho listeners where the pulse is each frame.

Constructors​

MemberWhat it is
MiningEchoExecution(Vector3 center, MiningEcho.LevelDefinition levelDefinition)Creates a MiningEcho.MiningEchoExecution from center and levelDefinition.

Fields​

2 private and internal fields
MemberWhat it is
private MiningEcho.LevelDefinition levelDefinitionThe skill level settings (size, curve and duration) for this pulse.
private float progressHow far through the pulse is, from 0 to 1.

Properties​

MemberWhat it is
Vector3 Center { get; }The world point of the hit the echo started from.
bool IsFinished { get; }True once the pulse has run for its full duration.
float Radius { get; }The current radius: the level's size times its curve at the current progress.

Methods​

MemberWhat it is
void Update()Moves the pulse forward by one frame of its duration. Called by MiningEcho's update loop.

Used in​

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