From 45f804fef3766e3183610b93ac3d1ffb89f08408 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 22 Apr 2021 20:06:58 -0300 Subject: "party sources" ui (no socket functionality yet) --- backend.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'backend.js') diff --git a/backend.js b/backend.js index 349d7f3..ddfb000 100644 --- a/backend.js +++ b/backend.js @@ -660,8 +660,8 @@ class Backend extends EventEmitter { } = {}) { super() - this.playerName = playerName; - this.playerOptions = playerOptions; + this.playerName = playerName + this.playerOptions = playerOptions if (playerOptions.length && !playerName) { throw new Error(`Must specify playerName to specify playerOptions`); @@ -858,6 +858,18 @@ class Backend extends EventEmitter { showLogMessage(messageInfo) { this.emit('log message', messageInfo) } + + loadPartyGrouplike(partyGrouplike) { + this.emit('got party grouplike', partyGrouplike) + } + + shareWithParty(item) { + this.emit('share with party', item) + } + + partyGrouplikeUpdated(partyGrouplike) { + this.emit('party grouplike updated', partyGrouplike) + } } module.exports = Backend -- cgit 1.3.0-6-gf8a5