using System; namespace ET { public struct BuffStateInfo : IEquatable, IComparable { 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); } } }