This commit is contained in:
Sebastien Riviere
2025-09-08 15:08:44 +02:00
parent 75f8b10ecd
commit 7e4d9f910a
37 changed files with 403 additions and 435 deletions

View File

@@ -5,8 +5,8 @@ import { useTeamContext } from "../context/teamContext";
export default function useGame() {
const { teamSocket } = useSocket();
const { teamId } = useTeamConnexion();
const { teamInfos, gameState } = useTeamContext();
const { teamInfos } = useTeamContext();
function sendCurrentPosition() {
console.log("Reveal position.")
teamSocket.emit("send_position");
@@ -29,5 +29,5 @@ export default function useGame() {
});
}
return {...teamInfos, sendCurrentPosition, capture, teamId, gameState};
return {...teamInfos, sendCurrentPosition, capture, teamId};
}