mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 22:46:12 +01:00
Initial commit
This commit is contained in:
commit
aa4021d1a2
163 changed files with 26530 additions and 0 deletions
20
module/helpers/socket.mjs
Normal file
20
module/helpers/socket.mjs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
export function handleSocketEvent({action=null, data={}}={}) {
|
||||
switch (action) {
|
||||
case socketEvent.GMUpdate:
|
||||
Hooks.callAll(socketEvent.GMUpdate, data.action, data.uuid, data.update);
|
||||
break;
|
||||
case socketEvent.DhpFearUpdate:
|
||||
Hooks.callAll(socketEvent.DhpFearUpdate);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
export const socketEvent = {
|
||||
GMUpdate: "DhpGMUpdate",
|
||||
DhpFearUpdate: "DhpFearUpdate",
|
||||
};
|
||||
|
||||
export const GMUpdateEvent = {
|
||||
UpdateDocument: "DhpGMUpdateDocument",
|
||||
UpdateFear: "DhpUpdateFear"
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue