public static TCommand Stand <TCommand>(this ISimpleMovementRules <TCommand> factory, double time) where TCommand : ISimpleMovementCommand, new() { return(new TCommand { SimpleMovement = SimpleMovement.Stand(time) }); }
public void DefineKeyboardControl(IKeyboardController _pool, string controllerId) { var pool = Compatibility.Check <KeyboardController <MoveAndGripCommand> >(this, _pool); this.AddGripKeys(pool, controllerId); this.AddSimpleMovementKeys(pool, controllerId); pool.StopCommand = () => new MoveAndGripCommand { SimpleMovement = SimpleMovement.Stand(0.1) }; }