def _on_sim_spawned(self, sim_info: SimInfo, *_, **__):
     from sims4communitylib.events.zone_spin.common_zone_spin_event_dispatcher import CommonZoneSpinEventDispatcher
     if CommonZoneSpinEventDispatcher.get().game_loading:
         return False
     from sims4communitylib.utils.sims.common_sim_utils import CommonSimUtils
     return CommonEventRegistry.get().dispatch(
         S4CLSimSpawnedEvent(CommonSimUtils.get_sim_info(sim_info)))
 def _notify_exception_occurred(file_path: str):
     from ui.ui_dialog_notification import UiDialogNotification
     from sims4communitylib.notifications.common_basic_notification import CommonBasicNotification
     from sims4communitylib.enums.strings_enum import CommonStringId
     from sims4communitylib.events.zone_spin.common_zone_spin_event_dispatcher import CommonZoneSpinEventDispatcher
     if not CommonZoneSpinEventDispatcher.get().game_loaded:
         return
     basic_notification = CommonBasicNotification(
         CommonStringId.EXCEPTION_OCCURRED_TITLE,
         CommonStringId.EXCEPTION_OCCURRED_TEXT,
         description_tokens=(file_path,),
         urgency=UiDialogNotification.UiDialogNotificationUrgency.URGENT
     )
     basic_notification.show()
 def _notify_exception_occurred(file_path: str, mod_identifier: Union[str, CommonModIdentity]=None):
     from ui.ui_dialog_notification import UiDialogNotification
     from sims4communitylib.notifications.common_basic_notification import CommonBasicNotification
     from sims4communitylib.enums.strings_enum import CommonStringId
     from sims4communitylib.events.zone_spin.common_zone_spin_event_dispatcher import CommonZoneSpinEventDispatcher
     if not CommonZoneSpinEventDispatcher.get().game_loaded:
         return
     mod_identifier = CommonModIdentity._get_mod_name(mod_identifier)
     basic_notification = CommonBasicNotification(
         CommonStringId.EXCEPTION_OCCURRED_TITLE_FOR_MOD,
         CommonStringId.EXCEPTION_OCCURRED_TEXT,
         title_tokens=(mod_identifier,),
         description_tokens=(file_path,),
         urgency=UiDialogNotification.UiDialogNotificationUrgency.URGENT
     )
     basic_notification.show()
 def _on_sim_load(self, sim_info: SimInfo, *_, **__) -> bool:
     from sims4communitylib.events.zone_spin.common_zone_spin_event_dispatcher import CommonZoneSpinEventDispatcher
     if CommonZoneSpinEventDispatcher.get().game_loading:
         return False
     return CommonEventRegistry.get().dispatch(S4CLSimLoadedEvent(sim_info))