resolveGameSlots function

List<GamificationSlot> resolveGameSlots(
  1. List<GamificationSlot> slots,
  2. VariableScope scope
)

resolveGameValues for each slot, keeping its outcome key.

Implementation

List<GamificationSlot> resolveGameSlots(
  List<GamificationSlot> slots,
  VariableScope scope,
) =>
    [
      for (final slot in slots)
        GamificationSlot(
          slot.outcomeKey,
          resolveGameValues(slot.values, scope),
        ),
    ];