private string getFlipDirectionsString(FlipDirections direction) { switch (direction) { case FlipDirections.Back: { return("b"); } case FlipDirections.BackLeft: { return("bl"); } case FlipDirections.BackRight: { return("br"); } case FlipDirections.Forward: { return("f"); } case FlipDirections.FrontLeft: { return("fl"); } case FlipDirections.FrontRight: { return("fr"); } case FlipDirections.Left: { return("l"); } case FlipDirections.Right: { return("r"); } } return(string.Empty); }
public FlipCommand(FlipDirections direction) { Direction = direction; }
private Action Flip(FlipDirections direction) { return(CreateAction(direction)); }
private Action CreateAction(FlipDirections direction) { return(new Action(direction.ToString(), $"flip {getFlipDirectionsString(direction)}", Action.ActionTypes.Control, Client)); }
public Flip(FlipDirections direction) { Direction = direction; }