add scene management (create/delete)
This commit is contained in:
parent
e730f9a870
commit
8f5f82ff31
6 changed files with 58 additions and 0 deletions
|
@ -136,6 +136,10 @@ class Tavern {
|
|||
if (!this.connected || this.loggedIn) { return; }
|
||||
this.socket.send(JSON.stringify({ create_scene: { title: title } }));
|
||||
}
|
||||
delete_scene = (scene) => {
|
||||
if (!this.connected || this.loggedIn) { return; }
|
||||
this.socket.send(JSON.stringify({ delete_scene: { scene: scene } }));
|
||||
}
|
||||
shutdown = () => {
|
||||
if (!this.connected || this.loggedIn || !this.admin) { return; }
|
||||
this.socket.send(JSON.stringify('shutdown'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue