def get_outfit_parts( sim_info: SimInfo, outfit_category_and_index: Union[Tuple[OutfitCategory, int], None] = None ) -> Dict[BodyType, int]: """get_outfit_parts(sim_info, outfit_category_and_index=None) Retrieve Outfit Parts for the specified OutfitCategory and Index of a Sim. :param sim_info: The Sim to retrieve outfit parts of. :type sim_info: SimInfo :param outfit_category_and_index: The OutfitCategory and Index of the outfit to retrieve data from. Default is the current outfit. :type outfit_category_and_index: Union[Tuple[OutfitCategory, int], None], optional :return: A dictionary of body types and cas parts in those body types for the outfit of a Sim. :rtype: Dict[BodyType, int] """ if outfit_category_and_index is None: outfit_category_and_index = CommonOutfitUtils.get_current_outfit( sim_info) outfit_data = sim_info.get_outfit(outfit_category_and_index[0], outfit_category_and_index[1]) if outfit_data is None: return dict() return dict( zip(list(outfit_data.body_types), list(outfit_data.part_ids)))
def get_outfit_data( sim_info: SimInfo, outfit_category_and_index: Union[Tuple[OutfitCategory, int], None] = None ) -> OutfitData: """ Retrieve OutfitData for the specified OutfitCategory and Index of a sim. :param sim_info: The sim to retrieve outfit data of. :param outfit_category_and_index: The OutfitCategory and Index of the outfit to retrieve data from. Default is the current outfit. """ if outfit_category_and_index is None: outfit_category_and_index = CommonOutfitUtils.get_current_outfit( sim_info) return sim_info.get_outfit(outfit_category_and_index[0], outfit_category_and_index[1])