le caca coule au cucu

This commit is contained in:
2024-03-25 16:11:07 +01:00
committed by AdrienLSH
parent 602d4f300f
commit a6c27fc87a
7 changed files with 20 additions and 11 deletions

View File

@ -21,8 +21,9 @@ class Game
* @param {Boolean} started
* @param {Number} winner_id
* @param {String} state
* @param {String} gamemode
*/
constructor(client, id, disconnect_handler, goal_handler, finish_handler, winner_id, state, started, finished, players_data, start_timestamp, stop_timestamp)
constructor(client, id, disconnect_handler, goal_handler, finish_handler, winner_id, state, started, finished, players_data, start_timestamp, stop_timestamp, gamemode)
{
/**
* @type {Client}
@ -94,6 +95,11 @@ class Game
)
);
});
/**
* @type {String}
*/
this.gamemode = gamemode;
}
/**

View File

@ -92,8 +92,7 @@ const router = async(uri) => {
{ path: "/matchmaking", view: MatchMakingView },
{ path: "/games/offline", view: GameOfflineView },
{ path: "/tictactoe", view: TicTacToeView },
{ path: "/games/:id/0", view: GameView2D },
{ path: "/games/:id/1", view: GameView3D },
{ path: "/games/pong/:id", view: GameView2D },
{ path: "/games/tictactoe/:id", view: TicTacToeOnlineView },
];