maplestory-openapi
Version:
This JavaScript library enables the use of the MapleStory OpenAPI of Nexon.
78 lines (75 loc) • 1.71 kB
JavaScript
import { CharacterImageDto as CharacterImageDto$1 } from '../../../common/dto/character/characterImage.js';
/**
* 角色外型圖片資訊
*/
class CharacterImageDto extends CharacterImageDto$1 {
/**
* 要搜尋的日期 (TST,每日資料中的小時與分鐘將顯示為 0)
*/
date;
/**
* 角色外型圖片原始 (URL)
*/
originUrl;
/**
* 角色外型圖片原始 (base64)
*/
originImage;
/**
* 角色外型圖片 (base64)
*/
image;
/**
* 角色動作
*/
action;
/**
* 角色表情
*/
emotion;
/**
* 角色武器動作
*/
wmotion;
/**
* 角色動作影格
*/
actionFrame;
/**
* 角色表情影格
*/
emotionFrame;
/**
* 寬度 (對應背景大小,96 (預設) 至 1000)
*/
width;
/**
* 高度 (對應背景大小,96 (預設) 至 1000)
*/
height;
/**
* 角色的水平座標 (座標範圍 0 < x < 寬度,0 對應至最左起點)
*/
x;
/**
* 角色的垂直座標 (座標範圍 0 < y < 高度,0 對應至最上方起點)
*/
y;
constructor(obj) {
super();
this.date = obj.date;
this.originUrl = obj.originUrl;
this.originImage = obj.originImage;
this.image = obj.image;
this.action = obj.action;
this.emotion = obj.emotion;
this.wmotion = obj.wmotion;
this.actionFrame = obj.actionFrame;
this.emotionFrame = obj.emotionFrame;
this.width = obj.width;
this.height = obj.height;
this.x = obj.x;
this.y = obj.y;
}
}
export { CharacterImageDto };