Inventory system changes

This commit is contained in:
2023-11-02 17:12:24 +01:00
parent 8b55039972
commit 4e2eedda49
13 changed files with 100 additions and 160 deletions

7
Quest/_update.ts Normal file
View File

@@ -0,0 +1,7 @@
export function update(socket, data){
if(!socket.hasOwnProperty("player")) return;
let buff = Buffer.from(data, 'base64');
//let data1 : levelUpdateHost = JSON.parse(buff.toString('utf-8'));
//let player : playerData = socket.player
}

7
Quest/questSocket.ts Normal file
View File

@@ -0,0 +1,7 @@
import { update } from "./_update";
export function registerQuestCallbacks(socket){
socket.on('quest/update', (data) => {
update(socket, data)
});
}