29 lines
745 B
C#
29 lines
745 B
C#
|
using System;
|
|||
|
|
|||
|
namespace ET
|
|||
|
{
|
|||
|
public struct BuffStateInfo : IEquatable<BuffStateInfo>, IComparable<BuffStateInfo>
|
|||
|
{
|
|||
|
public enum ChangeType { Add, Reduce }
|
|||
|
public long unitId;
|
|||
|
public ChangeType changeType;
|
|||
|
public bool isBuff;
|
|||
|
public int iconId;
|
|||
|
public string iconDesc;
|
|||
|
public int time;
|
|||
|
|
|||
|
public bool Equals(BuffStateInfo other)
|
|||
|
{
|
|||
|
return unitId == other.unitId &&
|
|||
|
iconDesc == other.iconDesc &&
|
|||
|
isBuff == other.isBuff &&
|
|||
|
iconId == other.iconId
|
|||
|
;
|
|||
|
}
|
|||
|
|
|||
|
public int CompareTo(BuffStateInfo other)
|
|||
|
{
|
|||
|
return unitId.CompareTo(other);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|