archiTop/deck_builder/multi_card_deck_builder.py
def create_deck(self) -> dict:
        """Create the json structure for the card deck containing multiple cards.

        Returns:
            TableTop card deck json containing multiple cards
        """
        for card in self.cards:
            self._populate_card_template(card)
            self._populate_card_asset_template(card)

        self.card_deck_json['ContainedObjects'] = self.contained_objects
        self.card_deck_json['DeckIDs'] = self.deck_ids
        self.card_deck_json['CustomDeck'] = self.custom_deck
        self.card_deck_json['Transform']['rotZ'] = 180 if self.hidden else 0

        return self.card_deck_json
Create the json structure for the card deck containing multiple cards.

        Returns:
            TableTop card deck json containing multiple cards
        
Create the json structure for the card deck containing multiple cards.
Create the json structure for the card deck containing multiple cards .
def create_deck(self) -> dict:
        for card in self.cards:
            self._populate_card_template(card)
            self._populate_card_asset_template(card)
        self.card_deck_json['ContainedObjects'] = self.contained_objects
        self.card_deck_json['DeckIDs'] = self.deck_ids
        self.card_deck_json['CustomDeck'] = self.custom_deck
        self.card_deck_json['Transform']['rotZ'] = 180 if self.hidden else 0
        return self.card_deck_json
def create_deck ( self ) -> dict : for card in self . cards : self . _populate_card_template ( card ) self . _populate_card_asset_template ( card ) self . card_deck_json [ 'ContainedObjects' ] = self . contained_objects self . card_deck_json [ 'DeckIDs' ] = self . deck_ids self . card_deck_json [ 'CustomDeck' ] = self . custom_deck self . card_deck_json [ 'Transform' ] [ 'rotZ' ] = 180 if self . hidden else 0 return self . card_deck_json
Create the json structure for the card deck containing multiple cards.
Create the json structure for the card deck containing multiple cards .
"""Create the json structure for the card deck containing multiple cards.

        Returns:
            TableTop card deck json containing multiple cards
        """
TableTop card deck json containing multiple cards
TableTop card deck json containing multiple cards
self