26 lines
604 B
C#
26 lines
604 B
C#
using System;
|
|
|
|
namespace LitMotion
|
|
{
|
|
/// <summary>
|
|
/// A type indicating that motion has no special options. Specify in the type argument of MotionAdapter when the option is not required.
|
|
/// </summary>
|
|
[Serializable]
|
|
public readonly struct NoOptions : IMotionOptions, IEquatable<NoOptions>
|
|
{
|
|
public bool Equals(NoOptions other)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
return obj is NoOptions;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
} |