Firstborn/Library/PackageCache/com.unity.timeline@1.7.1/Editor/State/PlayRange.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

46 lines
1.0 KiB
C#

using System;
namespace UnityEditor.Timeline
{
[Serializable]
struct PlayRange : IEquatable<PlayRange>
{
public bool Equals(PlayRange other)
{
return other != null && start.Equals(other.start) && end.Equals(other.end);
}
public override bool Equals(object obj)
{
return obj is PlayRange other && Equals(other);
}
public static bool operator ==(PlayRange left, PlayRange right)
{
return left.Equals(right);
}
public static bool operator !=(PlayRange left, PlayRange right)
{
return !left.Equals(right);
}
public override int GetHashCode()
{
unchecked
{
return (start.GetHashCode() * 397) ^ end.GetHashCode();
}
}
public PlayRange(double a, double b)
{
start = a;
end = b;
}
public double start;
public double end;
}
}