public override int GetHashCode() =>
 unchecked ((int)math.hash(new int4x2(
                               new int4(
                                   IgnoreTriggers ? 1 : 0,
                                   IgnoreStatic ? 1 : 0,
                                   PreviousEntity.GetHashCode(),
                                   CurrentEntity.GetHashCode()),
                               new int4(
                                   HoverMaterial != null ? HoverMaterial.GetHashCode() : 0,
                                   OriginalMaterial != null ? OriginalMaterial.GetHashCode() : 0,
                                   0, 0))
                           ));
Beispiel #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Value;
         hashCode = (hashCode * 397) ^ Float3.GetHashCode();
         hashCode = (hashCode * 397) ^ (!ReferenceEquals(MaterialArray, null) ? MaterialArray.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (!ReferenceEquals(MaterialList, null) ? MaterialList.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StringValue != null ? StringValue.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)EnumValue;
         hashCode = (hashCode * 397) ^ (!ReferenceEquals(Mat, null) ? Mat.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (!ReferenceEquals(NullObj, null) ? NullObj.GetHashCode() : 0);
         return(hashCode);
     }
 }
Beispiel #3
0
 public override int GetHashCode() =>
 unchecked ((int)math.hash(new int3(
                               DynamicMaterial != null ? DynamicMaterial.GetHashCode() : 0,
                               KinematicMaterial != null ? KinematicMaterial.GetHashCode() : 0,
                               StaticMaterial != null ? StaticMaterial.GetHashCode() : 0
                               )));