mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
improved password protection code
This commit is contained in:
@@ -6,12 +6,13 @@ import { useTeamContext } from "@/context/teamContext";
|
||||
|
||||
export default function useGame() {
|
||||
const {teamSocket} = useSocket();
|
||||
const {loggedIn, login, teamId} = useTeamConnexion();
|
||||
const {teamId} = useTeamConnexion();
|
||||
const {currentPosition, enemyPosition} = useTeamContext();
|
||||
|
||||
function sendCurrentPosition() {
|
||||
teamSocket.emit("send_position");
|
||||
}
|
||||
|
||||
return { sendCurrentPosition, login, enemyPosition, currentPosition, loggedIn, teamId };
|
||||
|
||||
return { sendCurrentPosition, enemyPosition, currentPosition, teamId };
|
||||
}
|
||||
Reference in New Issue
Block a user