def chapter_reward(request): server_id = request._game_session.server_id char_id = request._game_session.char_id chapter_id = request._proto.id index = request._proto.index resource_classified = Challenge(server_id, char_id).get_chapter_reward(chapter_id, index) response = ChapterGetStarRewardResponse() response.ret = 0 response.drop.MergeFrom(resource_classified.make_protomsg()) return ProtobufResponse(response)
def chapter_reward(request): server_id = request._game_session.server_id char_id = request._game_session.char_id chapter_id = request._proto.id index = request._proto.index resource_classified = Challenge(server_id, char_id).get_chapter_reward( chapter_id, index) response = ChapterGetStarRewardResponse() response.ret = 0 response.drop.MergeFrom(resource_classified.make_protomsg()) return ProtobufResponse(response)
def report(request): server_id = request._game_session.server_id char_id = request._game_session.char_id key = request._proto.key star = request._proto.star resource_classified = Challenge(server_id, char_id).report(key, star) response = ChallengeMatchReportResponse() response.ret = 0 if resource_classified: response.drop.MergeFrom(resource_classified.make_protomsg()) return ProtobufResponse(response)