diff options
author | (quasar) nebula <towerofnix@gmail.com> | 2021-04-22 20:06:58 -0300 |
---|---|---|
committer | (quasar) nebula <towerofnix@gmail.com> | 2021-04-22 20:06:58 -0300 |
commit | 45f804fef3766e3183610b93ac3d1ffb89f08408 (patch) | |
tree | a8591c4886ee9109ae21a5ee18a9c282a7435998 /backend.js | |
parent | 1ca458abc3503ba951c5e19362a54208a285833c (diff) |
"party sources" ui (no socket functionality yet)
Diffstat (limited to 'backend.js')
-rw-r--r-- | backend.js | 16 |
1 files changed, 14 insertions, 2 deletions
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 |