2019-12-14 04:14:20 +00:00
|
|
|
|
using HAI_Shared;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace OmniLinkBridgeTest.Mock
|
|
|
|
|
{
|
|
|
|
|
public class SendCommandEventArgs : EventArgs
|
|
|
|
|
{
|
|
|
|
|
public enuUnitCommand Cmd;
|
|
|
|
|
public byte Par;
|
|
|
|
|
public ushort Pr2;
|
|
|
|
|
|
2024-05-04 01:33:12 +00:00
|
|
|
|
public SendCommandEventArgs()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public SendCommandEventArgs(enuUnitCommand cmd, byte par, ushort pr2)
|
|
|
|
|
{
|
|
|
|
|
Cmd = cmd;
|
|
|
|
|
Par = par;
|
|
|
|
|
Pr2 = pr2;
|
|
|
|
|
}
|
|
|
|
|
|
2019-12-14 04:14:20 +00:00
|
|
|
|
public override bool Equals(object other)
|
|
|
|
|
{
|
2020-11-06 02:59:30 +00:00
|
|
|
|
if (!(other is SendCommandEventArgs toCompareWith))
|
2019-12-14 04:14:20 +00:00
|
|
|
|
return false;
|
|
|
|
|
|
2020-11-06 02:59:30 +00:00
|
|
|
|
return Cmd == toCompareWith.Cmd &&
|
|
|
|
|
Par == toCompareWith.Par &&
|
|
|
|
|
Pr2 == toCompareWith.Pr2;
|
2019-12-14 04:14:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override int GetHashCode()
|
|
|
|
|
{
|
|
|
|
|
return base.GetHashCode();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|