sofii/SoFii/SoF2VideoMode.cs

27 lines
620 B
C#
Raw Normal View History

2023-10-08 00:10:21 +00:00
namespace SoFii {
public readonly struct SoF2VideoMode {
public int Mode { get; }
public string Resolution { get; }
public SoF2VideoMode(int mode, string res) {
Mode = mode;
Resolution = res;
}
public override string ToString() {
return Resolution;
}
public override bool Equals(object obj) {
if(obj is int num && num == Mode)
return true;
return base.Equals(obj);
}
public override int GetHashCode() {
return base.GetHashCode();
}
}
}