Skip to content

MovementManager ยป Movement

Namespace: Mayo.Manager.Movement
Denpendies: GC.MM


async Task<bool> MoveForwardAsync(double Yards, List<Func<bool>>?)

Allows the character to move the specified range.
Optionally, "stop conditions" can be specified.
Returns true when arrived.
Returns false if any stop condition has met.

Example
var CTS = new CancellationTokenSource();
var IsCanceled = false;

var IsArrived = await GC.MM.MoveForwardAsync(10, [
    () => CTS.Token.IsCancellationRequested,
    () => IsCanceled
]);

async Task<bool> MoveBackwardAsync(double Yards, List<Func<bool>>?)

async Task<bool> StrafeLeftAsync(double Yards, List<Func<bool>>?)

async Task<bool> StrafeRightAsync(double Yards, List<Func<bool>>?)

async Task<bool> JumpAsync()

async Task<bool> ChangeHeightAsync(double Yards)

Requires a flight mount.
Flies to the specified altitude.


void MoveTo(Vector3 Position)

Makes the character move to the specified location.


void StopMoving()

Stops the character.


bool MoveForward(double Yards, List<Func<bool>>?)

bool MoveBackward(double Yards, List<Func<bool>>?)

bool StrafeLeft(double Yards, List<Func<bool>>?)

bool StrafeRight(double Yards, List<Func<bool>>?)

bool Jump()

void ChangeHeight(double Yards)