UNPKG

maplestory-openapi

Version:

This JavaScript library enables the use of the MapleStory OpenAPI of Nexon.

102 lines (98 loc) 2.21 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); /** * 연무장 측정 결과 정보 */ class BattlePracticeResultDto { /** * 리플레이 등록 일시 (KST) */ registerDate; /** * 총 연무 시간 (ms) */ totalPlayTime; /** * 총합 데미지 */ totalDamage; /** * 초당 평균 데미지 */ totalDps; /** * 종료 타입 (1:자동 종료, 2:수동 종료, 3:시간 초과, 9:기타 종료) */ endType; /** * 리플레이 추천 수 */ likeCount; /** * 스킬 단위 전투 분석 정보 */ skillStatistic; constructor(obj) { this.registerDate = new Date(obj.register_date); this.totalPlayTime = obj.total_play_time; this.totalDamage = obj.total_damage; this.totalDps = obj.total_dps; this.endType = obj.end_type; this.likeCount = obj.like_count; this.skillStatistic = obj.skill_statistic.map((s) => new BattlePracticeSkillStatisticDto(s)); } } /** * 연무장 스킬 단위 전투 분석 정보 */ class BattlePracticeSkillStatisticDto { /** * 스킬 명 */ skillName; /** * 누적 데미지 */ damage; /** * 데미지 점유율 */ damagePercent; /** * 초당 평균 데미지 */ dps; /** * 사용 횟수 */ useCount; /** * 1회당 평균 데미지 */ damagePerUse; /** * 공격 횟수 */ attackCount; /** * 최대 데미지 (1타) */ maxDamage; /** * 최소 데미지 (1타) */ minDamage; constructor(obj) { this.skillName = obj.skill_name; this.damage = obj.damage; this.damagePercent = obj.damage_percent; this.dps = obj.dps; this.useCount = obj.use_count; this.damagePerUse = obj.damage_per_use; this.attackCount = obj.attack_count; this.maxDamage = obj.max_damage; this.minDamage = obj.min_damage; } } exports.BattlePracticeResultDto = BattlePracticeResultDto; exports.BattlePracticeSkillStatisticDto = BattlePracticeSkillStatisticDto;