Struct PluginMovementIntent
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
The movement keys a plugin wants held down. The host applies this as if the player were holding those keys, until it is replaced or cleared.
public readonly record struct PluginMovementIntent : IEquatable<PluginMovementIntent>
- Implements
- Inherited Members
Constructors
PluginMovementIntent(bool, bool, bool, bool, bool, bool, bool, bool)
The movement keys a plugin wants held down. The host applies this as if the player were holding those keys, until it is replaced or cleared.
public PluginMovementIntent(bool Forward = false, bool Backward = false, bool StrafeLeft = false, bool StrafeRight = false, bool TurnLeft = false, bool TurnRight = false, bool Run = true, bool Jump = false)
Parameters
ForwardboolHold the forward key.
BackwardboolHold the backward key.
StrafeLeftboolSidestep to the left without turning.
StrafeRightboolSidestep to the right without turning.
TurnLeftboolTurn on the spot to the left.
TurnRightboolTurn on the spot to the right.
RunboolRun rather than walk. Defaults to true.
JumpboolJump.
Properties
Backward
Hold the backward key.
public bool Backward { get; init; }
Property Value
Forward
Hold the forward key.
public bool Forward { get; init; }
Property Value
Jump
Jump.
public bool Jump { get; init; }
Property Value
Run
Run rather than walk. Defaults to true.
public bool Run { get; init; }
Property Value
StrafeLeft
Sidestep to the left without turning.
public bool StrafeLeft { get; init; }
Property Value
StrafeRight
Sidestep to the right without turning.
public bool StrafeRight { get; init; }
Property Value
TurnLeft
Turn on the spot to the left.
public bool TurnLeft { get; init; }
Property Value
TurnRight
Turn on the spot to the right.
public bool TurnRight { get; init; }