Skip to main content

ISkillInputMethod

An interface in Root.Township, the global namespace.

One gesture a held tool skill waits for (shake, downward swing, strike succession, bow pullback, hand position and so on). Created from a SkillInputStructure and owned by a HeldPickupHandler.

Properties​

MemberWhat it is
HeldPickupHandler Handler { get; }The held pickup handler this input was registered with.
bool IsActive { get; }True while the gesture has been performed and the skill can fire.
bool NeedsUpdate { get; }Whether the input needs Update every frame; if any input does, the handler registers for updates.
bool ReceivesHits { get; }Whether hits go to this input's ReceiveHit instead of directly executing the skill when active.

Events​

MemberWhat it is
event Action<bool, ISkillInputMethod> ChangedActiveRaised when the gesture becomes active or stops being active; skills listen to it to arm or disarm.

Methods​

MemberWhat it is
void Clear()Tears down whatever the input set up when it is removed from the handler.
bool ReceiveHit(HeldPickupHandler handler, ImpactHitWithTool hitWithTool, ProfessionSkill skill)For inputs that react to hits: handles a tool hit and returns true if the input should then reset.
void RegisterHandler(HeldPickupHandler pickupHandler, SkillInputStructure structure, ProfessionSkill skill)Links the input to its handler, structure and skill, and sets up any detectors it needs.
void Reset(bool isCallingEvent)Makes the input inactive again, optionally raising ChangedActive.
void Update()Per-frame check for the gesture, called by the handler while NeedsUpdate is true.

Used in​

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

BowDrawSkill.bowStrings, BowDrawSkill.Deregister, BowDrawSkill.HandleInputChanged, BowDrawSkill.InputChangedState, BowDrawSkill.inputs, BowDrawSkill.Register, BowMultiArrowShot.bowStrings, BowMultiArrowShot.Deregister, BowMultiArrowShot.GetIdentifier, BowMultiArrowShot.InputChangedState, BowMultiArrowShot.inputs, BowMultiArrowShot.Modify, BowMultiArrowShot.Register, LightBeamSkill.HandleInputChanged, BowStringPullbackInputMethod.ChangedActive, BowStringPullbackStructure.GetNewInput, DownwardSwingInput.ChangedActive, DownwardSwingInputStructure.GetNewInput, DynamiteStrike.Deregister, DynamiteStrike.Register, DynamiteStrike.toolInputs, EmberComposer.Deregister, EmberComposer.Register, EmberComposer.HeatPointCollectionHandler.HeatPointCollectionHandler, EmberComposer.HeatPointCollectionHandler.Input, ForgingHeartCall.InputChangedState, ForgingHeartCallModifier.Modify, Gatherer.Deregister, HandPositionInput.ChangedActive, HandPositionStructure.GetNewInput, HeartCall.Deregister, HeldPickupHandler.Inputs, HeldPickupHandler.inputstoReset, HeldPickupHandler.RegisterToInput, HeldPickupHandler.SkillsToInputs, IInputBasedSkill.Deregister, IInputBasedSkill.InputChangedState, IInputBasedSkill.Register, MiningEcho.Deregister, MiningEcho.Register, MiningEcho.toolInputs, PickupBasedSkill.Deregister, PickupBasedSkill.InputChangedState, PickupBasedSkill.Register, PickupBasedSkillModifier.Deregister, PickupBasedSkillModifier.GetIdentifier, PickupBasedSkillModifier.InputChangedState, PickupBasedSkillModifier.Modify, PickupBasedSkillModifier.Register, PickupBasedSkillModifier.RequiredSetActive, PickupGrabInputMethod.ChangedActive, PickupGrabInputStructure.GetNewInput, PlayerToolBasedSkillHelper.ActivateInput, ShakeInput.ChangedActive, ShakeInputStructure.GetNewInput, SkillInputStructure.GetNewInput, SteelSong.Deregister, SteelSong.Register, SteelSong.SendStatusToLocalPlayer, StrikeSuccessionInput.ChangedActive and 5 more.