2024-01-29 15:37:19 +01:00
|
|
|
|
using CShocker.Shockers.Abstract;
|
|
|
|
|
|
|
|
|
|
namespace CShocker.Shockers;
|
|
|
|
|
|
|
|
|
|
public struct PiShockShocker : IShocker
|
|
|
|
|
{
|
|
|
|
|
public string Code;
|
2024-01-29 17:05:13 +01:00
|
|
|
|
|
|
|
|
|
public override bool Equals(object? obj)
|
|
|
|
|
{
|
|
|
|
|
return obj is PiShockShocker pss && Equals(pss);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private bool Equals(PiShockShocker other)
|
|
|
|
|
{
|
|
|
|
|
return Code == other.Code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override int GetHashCode()
|
|
|
|
|
{
|
|
|
|
|
return Code.GetHashCode();
|
|
|
|
|
}
|
2024-01-29 15:37:19 +01:00
|
|
|
|
}
|