Class TimeToBeat
- Namespace
- Playnite
- Assembly
- Playnite.SDK.dll
A base class for objects of which the properties must be observable.
[Equatable(IgnoreInheritedMembers = true)]
public class TimeToBeat : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging, ICopyable<TimeToBeat>, IEquatable<TimeToBeat>
- Inheritance
-
TimeToBeat
- Implements
- Inherited Members
Constructors
TimeToBeat()
public TimeToBeat()
TimeToBeat(uint, uint, uint)
public TimeToBeat(uint mainStory, uint mainStoryAndSide, uint completionist)
Parameters
Properties
Completionist
[ExcludeFromCodeCoverage]
public uint Completionist { get; set; }
Property Value
MainStory
[ExcludeFromCodeCoverage]
public uint MainStory { get; set; }
Property Value
MainStoryAndSide
[ExcludeFromCodeCoverage]
public uint MainStoryAndSide { get; set; }
Property Value
Methods
CompareTimeToBeats(TimeToBeat?, TimeToBeat?)
public static HashSet<string> CompareTimeToBeats(TimeToBeat? one, TimeToBeat? two)
Parameters
oneTimeToBeattwoTimeToBeat
Returns
Equals(TimeToBeat?)
protected bool Equals(TimeToBeat? other)
Parameters
otherTimeToBeat
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetCopy()
public TimeToBeat GetCopy()
Returns
GetDiffProperties(TimeToBeat)
public HashSet<string> GetDiffProperties(TimeToBeat target)
Parameters
targetTimeToBeat
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
HasData()
public bool HasData()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
operator ==(TimeToBeat?, TimeToBeat?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(TimeToBeat? left, TimeToBeat? right)
Parameters
leftTimeToBeatThe left object
rightTimeToBeatThe right object
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(TimeToBeat?, TimeToBeat?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(TimeToBeat? left, TimeToBeat? right)
Parameters
leftTimeToBeatThe left object
rightTimeToBeatThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.