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

        if (Name.Length != 0)
        {
            hash ^= Name.GetHashCode();
        }
        if (PosX != 0F)
        {
            hash ^= PosX.GetHashCode();
        }
        if (PosY != 0F)
        {
            hash ^= PosY.GetHashCode();
        }
        if (PosZ != 0F)
        {
            hash ^= PosZ.GetHashCode();
        }
        if (RotX != 0F)
        {
            hash ^= RotX.GetHashCode();
        }
        if (RotY != 0F)
        {
            hash ^= RotY.GetHashCode();
        }
        if (RotZ != 0F)
        {
            hash ^= RotZ.GetHashCode();
        }
        if (Hp != 0)
        {
            hash ^= Hp.GetHashCode();
        }
        if (BossHp != 0)
        {
            hash ^= BossHp.GetHashCode();
        }
        if (Target != 0)
        {
            hash ^= Target.GetHashCode();
        }
        return(hash);
    }