예제 #1
0
def _anon():
    builder = Builder()

    builder.add('ClientResponse', [(1, 'attributes', [mtypes.Attribute])])

    builder.add('ClientRequest', [(1, 'attributes', [mtypes.Attribute]),
                                  (2, 'host', mtypes.BnetProcessId),
                                  (3, 'bnet_account_id', mtypes.EntityId),
                                  (4, 'game_account_id', mtypes.EntityId)])

    builder.build(globals(), __name__)
예제 #2
0
def _anon():
    builder = Builder()

    builder.add('AssetsVersionResponse', [(1, 'version', 'int32')])

    builder.add('UpdateLogin', [(1, 'reply_required', 'bool')])

    builder.add('UpdateLoginComplete', [])

    builder.add('SetProgress', [(1, 'value', 'int64[]')])

    builder.add('SetProgressResponse', [(1, 'result', 'enum'),
                                        (2, 'progress', 'int64')])

    builder.build(globals(), __name__)
예제 #3
0
파일: account.py 프로젝트: ylyking/Hearthy
def _anon():
    builder = Builder()

    builder.add('GameSessionLocation', [(1, 'ip_address', 'string'),
                                        (2, 'country', 'uint32'),
                                        (3, 'city', 'string')])

    builder.add('GameSessionInfo', [(3, 'start_time', 'uint32'),
                                    (4, 'location', 'GameSessionLocation'),
                                    (5, 'has_benefactor', 'bool'),
                                    (6, 'is_using_igr', 'bool'),
                                    (7, 'parental_control_active', 'bool')])

    builder.add('GetGameSessionInfoResponse',
                [(2, 'session_info', 'GameSessionInfo')])

    builder.add('GetGameSessionInfoRequest',
                [(1, 'entity_id', mtypes.EntityId)])

    builder.build(globals(), __name__)