Go to the source code of this file.
◆ resolveEffectivePlaymat()
Resolves the effective playmat for a deck per the resolution chain: force override > deck-configured playmat > fallback list > none.
- Parameters
-
| deck | The deck to resolve a playmat for. |
| force | An optional user-level override; wins over everything. Pass an empty PlaymatInfo::card to skip it. |
| fallbackList | User-level fallback playmats, consulted only when the deck has no configured playmat. |
| fallbackMode | How fallbackList is consulted (ignored when empty). |
| rotationIndex | In/out cursor for PlaymatFallbackModeRoundRobin; advanced once per call. Unused for the other modes. |
- Returns
- The effective playmat; an empty PlaymatInfo::card when nothing in the chain resolves.
◆ resolvePlaymatForDeck()
Resolves the playmat to display for a deck according to the user's collection mode (PlaymatMode), combining the deck with the given fallback list.
- Parameters
-
| deck | The deck to resolve a playmat for. |
| fallbackList | User-level fallback playmats. |
| mode | How the collection interacts with the deck-configured playmat. |
| fallbackBehavior | How fallbackList is picked from. |
| rotationIndex | Cursor for PlaymatFallbackModeRoundRobin. |
- Returns
- The effective playmat; an empty PlaymatInfo::card when nothing resolves.