UNPKG

maplestory-openapi

Version:

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

89 lines (84 loc) 2.42 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var characterVMatrix = require('../../../common/dto/character/characterVMatrix.js'); /** * 角色 V 矩陣欄位資訊與已裝備 V 核心資訊 */ class CharacterVMatrixDto extends characterVMatrix.CharacterVMatrixDto { /** * 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0) */ date; /** * 角色職業 */ characterClass; /** * V 核心資訊 */ characterVCoreEquipment; /** * 角色剩餘的矩陣強化點數 */ characterVMatrixRemainSlotUpgradePoint; constructor(obj) { super(); const { date, character_class, character_v_core_equipment, character_v_matrix_remain_slot_upgrade_point, } = obj; this.date = date ? new Date(date) : null; this.characterClass = character_class; this.characterVCoreEquipment = character_v_core_equipment.map((equipment) => new CharacterVMatrixCodeEquipmentDto(equipment)); this.characterVMatrixRemainSlotUpgradePoint = character_v_matrix_remain_slot_upgrade_point; } } /** * V 核心資訊 */ class CharacterVMatrixCodeEquipmentDto extends characterVMatrix.CharacterVMatrixCodeEquipmentDto { /** * 欄位索引 */ slotId; /** * 欄位等級 */ slotLevel; /** * 核心名稱 */ vCoreName; /** * 核心類型 */ vCoreType; /** * 核心等級 */ vCoreLevel; /** * 對應核心的技能名稱 */ vCoreSkill1; /** * (若為強化核心) 對應核心的第二個技能名稱 */ vCoreSkill2; /** * (若為強化核心) 對應核心的第三個技能名稱 */ vCoreSkill3; constructor(obj) { super(); const { slot_id, slot_level, v_core_name, v_core_type, v_core_level, v_core_skill_1, v_core_skill_2, v_core_skill_3, } = obj; this.slotId = slot_id; this.slotLevel = slot_level; this.vCoreName = v_core_name; this.vCoreType = v_core_type; this.vCoreLevel = v_core_level; this.vCoreSkill1 = v_core_skill_1; this.vCoreSkill2 = v_core_skill_2; this.vCoreSkill3 = v_core_skill_3; } } exports.CharacterVMatrixCodeEquipmentDto = CharacterVMatrixCodeEquipmentDto; exports.CharacterVMatrixDto = CharacterVMatrixDto;