sofii/SoFii/SoF2VideoMode.cs
2023-10-08 02:10:21 +02:00

26 lines
620 B
C#

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();
}
}
}