csharp
public sealed class LeashOne mob's leash: how far it has been pulled and for how long.
Remarks
⚠ It is handed a distance rather than two positions. Working out how far apart two things are needs the scene, and an AI library that owned that would be a second spatial query — the same boundary PvpMatch.Occupy and InteractionNode sit on.
Fields and properties (4)
public LeashDefinition DefinitionHow far and what happens.
public LeashState StateWhere it is.
public float TetherHow far it will follow before it starts to give up.
public float BreakHow far before it does, never inside the tether.
Methods (4)
public Leash(LeashDefinition definition)Makes one, held.
public float StretchedFor(float now)How long it has been stretched, or zero.
public LeashVerdict Check(float distance, float now)Says how far it has been pulled and asks what to do.
public void Release()Puts it back to held. What finishing a reset does.
Used by (1)
- LeashTestsVixen.Gameplay.Ai.Tests