Pathfinding.Int3.GetHashCode C# (CSharp) Méthode

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int
		public override int GetHashCode () {
			return x*9+y*10+z*11;
		}
	}

Usage Example

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));
 }
All Usage Examples Of Pathfinding.Int3::GetHashCode