Example #1
0
 public static Direction GetDefaultDirection(this Movement movement)
 {
     return(MovementExtensionMethods.Get(movement).allowedDirections[0]);
 }
Example #2
0
 public static bool Allows(this Movement movement, Direction direction)
 {
     return(MovementExtensionMethods.Get(movement).allowedDirections.Contains(direction));
 }
Example #3
0
 public static Direction[] GetAllowedDirections(this Movement movement)
 {
     return(MovementExtensionMethods.Get(movement).allowedDirections);
 }