Exemple #1
0
def update_club(club_data: str, _connection=None):
    club_service = _get_club_service(_connection)
    if club_service is None:
        return
    proto = GameplaySaveData_pb2.Club()
    text_format.Merge(club_data, proto)
    club_service.update_club_from_data(proto)
Exemple #2
0
def create_club(club_data: str, _connection=None):
    club_service = _get_club_service(_connection)
    if club_service is None:
        sims4.commands.automation_output('ClubCreate; Status:Failed',
                                         _connection)
        return
    proto = GameplaySaveData_pb2.Club()
    text_format.Merge(club_data, proto)
    club = club_service.create_club_from_new_data(proto)
    sims4.commands.automation_output(
        'ClubCreate; Status:Success, Id:{}'.format(club.club_id), _connection)