7 lines
251 B
TypeScript
7 lines
251 B
TypeScript
|
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
|
||
|
}
|