pub(crate) fn cancel_trades_for(state: &mut State, entity: Entity)
Expand description

Cancel all trades registered for a given UID.

Note: This doesn’t send any notification to the provided entity (only other participants in the trade). It is assumed that the supplied entity either no longer exists or is awareof this cancellation through other means (e.g. client getting ExitInGameSuccess message knows that it should clear any trades).