le caca coule au cucu
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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 },
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user