NoOptions.cs 585 B

12345678910111213141516171819202122232425
  1. using System;
  2. namespace LitMotion
  3. {
  4. /// <summary>
  5. /// A type indicating that motion has no special options. Specify in the type argument of MotionAdapter when the option is not required.
  6. /// </summary>
  7. public readonly struct NoOptions : IMotionOptions, IEquatable<NoOptions>
  8. {
  9. public bool Equals(NoOptions other)
  10. {
  11. return true;
  12. }
  13. public override bool Equals(object obj)
  14. {
  15. return obj is NoOptions;
  16. }
  17. public override int GetHashCode()
  18. {
  19. return 0;
  20. }
  21. }
  22. }