UNPKG

@ginstone/nga-api

Version:

19 lines (18 loc) 510 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UserBuff = void 0; class UserBuff { constructor(raw) { this.id = raw[0]; this.type = raw[1]; this.fromUserId = raw[2]; this.userId = raw[3]; this.start = new Date(raw[4] * 1000); this.end = new Date(raw[5] * 1000); this.extraData = raw[6]; this.data7 = raw[7]; if (raw[9]) this.description = raw[9]; } } exports.UserBuff = UserBuff;