浏览代码

fix icon_Data

/siyaoH-1.17-PlatformMessage
Shiyun Wen 4 年前
当前提交
791a37b7
共有 1 个文件被更改,包括 5 次插入6 次删除
  1. 11
      com.unity.uiwidgets/Runtime/widgets/icon_data.cs

11
com.unity.uiwidgets/Runtime/widgets/icon_data.cs


int codePoint,
string fontFamily = null,
string fontPackage = null,
bool matchTextDirectiom = false
bool matchTextDirection = false
this.matchTextDirectiom = matchTextDirectiom;
this.matchTextDirection = matchTextDirection;
}
public readonly int codePoint;

public readonly string fontPackage;
public readonly bool matchTextDirectiom;
public readonly bool matchTextDirection;
public bool Equals(IconData other) {
if (ReferenceEquals(null, other)) {

return codePoint == other.codePoint &&
string.Equals(fontFamily, other.fontFamily) &&
string.Equals(fontPackage, other.fontPackage) &&
matchTextDirectiom == other.matchTextDirectiom;
matchTextDirection == other.matchTextDirection;
}
public override bool Equals(object obj) {

var hashCode =
(codePoint * 397) ^ (fontFamily != null ? fontFamily.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (fontPackage != null ? fontPackage.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ matchTextDirectiom.GetHashCode();
hashCode = (hashCode * 397) ^ matchTextDirection.GetHashCode();
return hashCode;
}
}

}
public static bool operator !=(IconData left, IconData right) {
return !Equals(left, right);
}

正在加载...
取消
保存