UNPKG

ps2census

Version:

Client to connect to the PS2 Event Stream websocket.

16 lines 582 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ItemAdded = void 0; const character_event_1 = require("./base/character.event"); class ItemAdded extends character_event_1.CharacterEvent { constructor(...params) { super(...params); this.emit = 'itemAdded'; this.item_count = Number.parseInt(params[ItemAdded.DATA].item_count, 10); } toHash() { return `ItemAdded:${this.character_id}:${this.timestamp}:${this.item_id}`; } } exports.ItemAdded = ItemAdded; //# sourceMappingURL=item-added.event.js.map