def _send_objectives_update_to_client(self): owner = self.owner_sim_info if owner is None or owner.is_npc or owner.manager is None: return msg = Sims_pb2.GoalsStatusUpdate() if self._update_objectives_msg_for_client(msg): msg.sim_id = owner.id distributor = Distributor.instance() distributor.add_op( owner, GenericProtocolBufferOp(Operation.SIM_GOALS_STATUS_UPDATE, msg))
def _send_objectives_update_to_client(self): owner = self.owner_sim_info if owner is None or owner.is_npc or owner.manager is None: return msg = Sims_pb2.GoalsStatusUpdate() if self._update_objectives_msg_for_client(msg): msg.sim_id = owner.id cheat_service = services.get_cheat_service() msg.cheats_used = cheat_service.cheats_ever_enabled distributor = Distributor.instance() distributor.add_op( owner, GenericProtocolBufferOp(Operation.SIM_GOALS_STATUS_UPDATE, msg, block_on_task_owner=False))