There's definitely the soft power element, but in this case I think it was relatively transactional. "If us Central American economies formerly recognize the People's Republic, what do we get in advance?" And infrastructure was what China had to offer