コード例 #1
0
ファイル: RulesExtensions.cs プロジェクト: FoKycHuK/CVARC
 public static TCommand MovePathWithVelocity <TCommand>(this ISimpleMovementRules <TCommand> factory, double path, double velocity)
     where TCommand : ISimpleMovementCommand, new()
 {
     return(new TCommand {
         SimpleMovement = SimpleMovement.MoveWithVelocity(path, velocity)
     });
 }
コード例 #2
0
ファイル: RulesExtensions.cs プロジェクト: FoKycHuK/CVARC
 public static TCommand Move <TCommand>(this ISimpleMovementRules <TCommand> factory, double length)
     where TCommand : ISimpleMovementCommand, new()
 {
     return(new TCommand {
         SimpleMovement = SimpleMovement.MoveWithVelocity(length, factory.LinearVelocityLimit)
     });
 }