Class LocomotionProfileBuilder
- Namespace
- Trailblazer.Navigation.Motor
- Assembly
- Trailblazer.dll
Fluent builder for composing built-in locomotion profiles.
public sealed class LocomotionProfileBuilder
- Inheritance
-
LocomotionProfileBuilder
- Inherited Members
Constructors
LocomotionProfileBuilder(bool)
Initializes a new builder.
public LocomotionProfileBuilder(bool includeOptionalLocomotions = true)
Parameters
includeOptionalLocomotionsboolWhen true, seeds the builder with the default full locomotion profile.
Properties
Climb
The optional climb locomotion to install.
public ClimbLocomotion? Climb { get; }
Property Value
Fall
The fall locomotion to install.
public FallLocomotion Fall { get; }
Property Value
Fly
The optional fly locomotion to install.
public FlyLocomotion? Fly { get; }
Property Value
Jump
The optional jump locomotion to install.
public JumpLocomotion? Jump { get; }
Property Value
Move
The move locomotion to install.
public MoveLocomotion Move { get; }
Property Value
Platform
The required platform locomotion to install.
public PlatformLocomotion Platform { get; }
Property Value
Slide
The optional slide locomotion to install.
public SlideLocomotion? Slide { get; }
Property Value
Water
The optional water locomotion to install.
public WaterLocomotion? Water { get; }
Property Value
Methods
Build()
Builds the composed locomotion profile.
public LocomotionProfile Build()
Returns
WithClimb(ClimbLocomotion?)
Installs or replaces climb locomotion.
public LocomotionProfileBuilder WithClimb(ClimbLocomotion? climb = null)
Parameters
climbClimbLocomotion
Returns
WithFall(FallLocomotion)
Replaces the core fall locomotion.
public LocomotionProfileBuilder WithFall(FallLocomotion fall)
Parameters
fallFallLocomotion
Returns
WithFly(FlyLocomotion?)
Installs or replaces fly locomotion.
public LocomotionProfileBuilder WithFly(FlyLocomotion? fly = null)
Parameters
flyFlyLocomotion
Returns
WithJump(JumpLocomotion?)
Installs or replaces jump locomotion.
public LocomotionProfileBuilder WithJump(JumpLocomotion? jump = null)
Parameters
jumpJumpLocomotion
Returns
WithMove(MoveLocomotion)
Replaces the core move locomotion.
public LocomotionProfileBuilder WithMove(MoveLocomotion move)
Parameters
moveMoveLocomotion
Returns
WithPlatform(PlatformLocomotion?)
Installs or replaces platform locomotion.
public LocomotionProfileBuilder WithPlatform(PlatformLocomotion? platform = null)
Parameters
platformPlatformLocomotion
Returns
WithSlide(SlideLocomotion?)
Installs or replaces slide locomotion.
public LocomotionProfileBuilder WithSlide(SlideLocomotion? slide = null)
Parameters
slideSlideLocomotion
Returns
WithWater(WaterLocomotion?)
Installs or replaces water locomotion.
public LocomotionProfileBuilder WithWater(WaterLocomotion? water = null)
Parameters
waterWaterLocomotion
Returns
WithoutClimb()
Removes climb locomotion.
public LocomotionProfileBuilder WithoutClimb()
Returns
WithoutFly()
Removes fly locomotion.
public LocomotionProfileBuilder WithoutFly()
Returns
WithoutJump()
Removes jump locomotion.
public LocomotionProfileBuilder WithoutJump()
Returns
WithoutSlide()
Removes slide locomotion.
public LocomotionProfileBuilder WithoutSlide()
Returns
WithoutWater()
Removes water locomotion.
public LocomotionProfileBuilder WithoutWater()