Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
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)
Ejemplo n.º 3
0
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)
Ejemplo n.º 4
0
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)