UNPKG

ps2census

Version:

Client to connect to the PS2 Event Stream websocket.

18 lines 778 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContinentLock = void 0; const world_event_1 = require("./base/world.event"); class ContinentLock extends world_event_1.WorldEvent { constructor(...params) { super(...params); this.emit = 'continentLock'; this.nc_population = Number.parseFloat(params[ContinentLock.DATA].nc_population); this.tr_population = Number.parseFloat(params[ContinentLock.DATA].tr_population); this.vs_population = Number.parseFloat(params[ContinentLock.DATA].vs_population); } toHash() { return `ContinentLock:${this.world_id}:${this.zone_id}:${this.timestamp}`; } } exports.ContinentLock = ContinentLock; //# sourceMappingURL=continent-lock.event.js.map