コード例 #1
0
ファイル: DirectionalState.cs プロジェクト: karlnp/picoBattle
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Direction.GetHashCode();
         result = (result * 397) ^ Movement.GetHashCode();
         result = (result * 397) ^ Up.GetHashCode();
         result = (result * 397) ^ Down.GetHashCode();
         result = (result * 397) ^ Left.GetHashCode();
         result = (result * 397) ^ Right.GetHashCode();
         return(result);
     }
 }