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)
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)
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)
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)