Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 103;

            unchecked
            {
                hash = hash + 29 * StateID.GetHashCode();
                hash = hash * 97 + LayerIndex.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (LayerIndex != 0)
            {
                hash ^= LayerIndex.GetHashCode();
            }
            if (InstanceId != 0)
            {
                hash ^= InstanceId.GetHashCode();
            }
            if (PlayerX != 0)
            {
                hash ^= PlayerX.GetHashCode();
            }
            if (PlayerY != 0)
            {
                hash ^= PlayerY.GetHashCode();
            }
            return(hash);
        }