IO of LeaderBoard

This commit is contained in:
Atsuyo-INSA 2023-12-07 14:10:53 +01:00
parent 01213ac742
commit f9ae4f9a42

View file

@ -58,6 +58,7 @@ class Network{
} }
died(id, killerId){ died(id, killerId){
this.deathToAdd.push({id:id,killerId:killerId});
this.socket.send(JSON.stringify({type:"died",data:{id: id, killerId: killerId}})); this.socket.send(JSON.stringify({type:"died",data:{id: id, killerId: killerId}}));
} }