Matches almost done still refining

This commit is contained in:
2026-01-02 21:45:37 +00:00
parent b9df0a4d4a
commit c3f8c3fff0
9 changed files with 468 additions and 30 deletions
+1 -1
View File
@@ -14,4 +14,4 @@ export const removeUser = (socketId) => {
export const getUserCount = () => {
return users.size;
};
};
+1 -1
View File
@@ -1,4 +1,4 @@
import BiscaGame from '../classes/BiscaGame.js';
import BiscaGame from "../classes/BiscaGame.js";
const activeGames = new Map();
+16
View File
@@ -0,0 +1,16 @@
const matches = new Map();
export const addMatch = (match) => {
matches.set(parseInt(match.id), match);
return match;
};
export const getMatch = (id) => {
return matches.get(parseInt(id));
};
export const removeMatch = (id) => {
matches.delete(parseInt(id));
};
export { matches };