Пример #1
0
 def on_zone_unload(self):
     if not game_services.service_manager.is_traveling:
         return
     self._whim_goal_proto = GameplaySaveData_pb2.WhimsetTrackerData()
     self.save_whims_info_to_proto(self._whim_goal_proto,
                                   copy_existing=False)
     self.clean_up()
Пример #2
0
 def cache_whim_goal_proto(self, whim_tracker_proto, skip_load=False):
     if skip_load:
         return
     if self._sim_info.is_npc:
         return
     if self._sim_info.whim_tracker is None:
         return
     self._whim_goal_proto = GameplaySaveData_pb2.WhimsetTrackerData()
     self._whim_goal_proto.CopyFrom(whim_tracker_proto)