def get_previous_outfit( sim_info: SimInfo, default_outfit_category_and_index: Tuple[OutfitCategory, int] = ( OutfitCategory.EVERYDAY, 0) ) -> Tuple[OutfitCategory, int]: """ Retrieve the previous outfit a sim was wearing before their current outfit. :param sim_info: The sim to get the previous outfit of. :param default_outfit_category_and_index: A default OutfitCategory and index if no previous outfit was found. """ return sim_info.get_previous_outfit( ) or default_outfit_category_and_index
def get_previous_outfit(sim_info: SimInfo, default_outfit_category_and_index: Tuple[OutfitCategory, int]=(OutfitCategory.EVERYDAY, 0)) -> Tuple[OutfitCategory, int]: """get_previous_outfit(sim_info, default_outfit_category_and_index=(OutfitCategory.EVERYDAY, 0)) Retrieve the previous outfit a Sim was wearing before their current outfit. :param sim_info: The Sim to get the previous outfit of. :type sim_info: SimInfo :param default_outfit_category_and_index: A default OutfitCategory and index if no previous outfit was found. :type default_outfit_category_and_index: Tuple[OutfitCategory, int], optional :return: The OutfitCategory and Index of the outfit a Sim was wearing before their current outfit or the default if none was found. :rtype: Tuple[OutfitCategory, int] """ return sim_info.get_previous_outfit() or default_outfit_category_and_index