Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
CardDatabaseData Struct Reference

Value type holding the full parsed state of a card database. More...

#include <card_database_data.h>

Public Attributes

CardNameMap cards
CardNameMap simpleNameCards
SetNameMap sets
FormatRulesNameMap formats

Detailed Description

Value type holding the full parsed state of a card database.

Parsers fill a CardDatabaseData off the UI thread; the finished snapshot is then swapped into the live CardDatabase atomically. Keeping this separate from the live container avoids emitting per-card change notifications and prevents readers from observing a half-loaded database.

Member Data Documentation

◆ cards

CardNameMap CardDatabaseData::cards

◆ formats

FormatRulesNameMap CardDatabaseData::formats

◆ sets

SetNameMap CardDatabaseData::sets

◆ simpleNameCards

CardNameMap CardDatabaseData::simpleNameCards

The documentation for this struct was generated from the following file: