예제 #1
0
 /// <summary>
 ///     Create a new player movement check against a colleciton of all
 ///     destination inputs.
 /// </summary>
 /// <param name="allDestinationInputs">
 ///     The collection of all destination inputs.
 /// </param>
 /// <returns>
 ///     A new player movement check against the given collection of all
 ///     destination inputs.
 /// </returns>
 /// <exception cref="ArgumentNullException">
 ///     Thrown when the collection of all destination inputs is null.
 /// </exception>
 public static DestinationCheck Against(
     AllDestinationInputs allDestinationInputs)
 {
     if (allDestinationInputs == null)
     {
         throw new ArgumentNullException(nameof(allDestinationInputs));
     }
     return(new DestinationCheck(allDestinationInputs));
 }
예제 #2
0
 private DestinationCheck(AllDestinationInputs allDestinationInputs)
 {
     this.allDestinationInputs = allDestinationInputs;
 }