webxash3d-mserver
Version:
WebXash3D MServer
20 lines (19 loc) • 517 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Server = void 0;
class Server {
constructor(connectionID, params) {
this.connectionID = connectionID;
this.params = params;
}
toJSON() {
return {
name: this.params.name,
address: this.connectionID,
maxPlayers: this.params.maxPlayers,
map: this.params.map,
iceServers: this.params.iceServers,
};
}
}
exports.Server = Server;
;