Exemplo n.º 1
0
    public int GetHash()
    {
        int hash = 17;

        hash += Name.GetHashCode() * 5;
        hash += Type.GetHashCode() * 3;
        hash += Icon.GetHashCode() * 5;
        hash += Prefab.GetHashCode() * 7;
        hash += props.GetHash() * 11;
        hash += itemFlags.GetHash() * 13;
        hash += stats.GetHash() * 17;
        hash += onEquip.GetHash() * 3;
        hash += onUse.GetHash() * 5;
        hash += onEaten.GetHash() * 7;
        hash += onHit.GetHash() * 9;
        return(hash);
    }