예제 #1
0
파일: staff.py 프로젝트: yueyoum/dianjing
def batch_destroy(request):
    server_id = request._game_session.server_id
    char_id = request._game_session.char_id

    staff_ids = request._proto.staff_ids

    rc = StaffManger(server_id, char_id).batch_destroy([i for i in staff_ids])

    response = StaffBatchDestroyResponse()
    response.ret = 0
    response.drop.MergeFrom(rc.make_protomsg())
    return ProtobufResponse(response)
예제 #2
0
파일: staff.py 프로젝트: zhifuliu/dianjing
def batch_destroy(request):
    server_id = request._game_session.server_id
    char_id = request._game_session.char_id

    staff_ids = request._proto.staff_ids

    rc = StaffManger(server_id, char_id).batch_destroy([i for i in staff_ids])

    response = StaffBatchDestroyResponse()
    response.ret = 0
    response.drop.MergeFrom(rc.make_protomsg())
    return ProtobufResponse(response)
예제 #3
0
파일: staff.py 프로젝트: yueyoum/dianjing
def destroy(request):
    server_id = request._game_session.server_id
    char_id = request._game_session.char_id

    staff_id = request._proto.staff_id
    tp = request._proto.tp

    resource_classified = StaffManger(server_id, char_id).destroy(staff_id, tp)

    response = StaffDestroyResponse()
    response.ret = 0
    response.drop.MergeFrom(resource_classified.make_protomsg())
    return ProtobufResponse(response)
예제 #4
0
파일: staff.py 프로젝트: zhifuliu/dianjing
def destroy(request):
    server_id = request._game_session.server_id
    char_id = request._game_session.char_id

    staff_id = request._proto.staff_id
    tp = request._proto.tp

    resource_classified = StaffManger(server_id, char_id).destroy(staff_id, tp)

    response = StaffDestroyResponse()
    response.ret = 0
    response.drop.MergeFrom(resource_classified.make_protomsg())
    return ProtobufResponse(response)