GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int
Exemple #1
0
 /** Hash code used for checking if the gizmos need to be updated.
  * Will change when the gizmos for the node might change.
  */
 public virtual int GetGizmoHashCode()
 {
     // Some hashing, the constants are just some arbitrary prime numbers. #flags contains the info for #Area, #Tag and #Walkable
     return(position.GetHashCode() ^ (19 * (int)Penalty) ^ (41 * (int)flags));
 }
Exemple #2
0
 /// <summary>
 /// Hash code used for checking if the gizmos need to be updated.
 /// Will change when the gizmos for the node might change.
 /// </summary>
 public virtual int GetGizmoHashCode()
 {
     // Some hashing, the constants are just some arbitrary prime numbers. #flags contains the info for #Tag and #Walkable
     return(position.GetHashCode() ^ (19 * (int)Penalty) ^ (41 * (int)(flags & ~(HierarchicalIndexMask | HierarchicalDirtyMask))));
 }