private int SetRequestFromHash(int hash)
        {
            int num = Slots.FindIndex(2, (Slot slot) => slot.Occupant && slot.Occupant.PrefabHash == hash);
            int result;

            if (num < 0)
            {
                result = -1;
            }
            else
            {
                RequestedHash = hash;
                result        = num;
            }
            return(result);
        }