Scrollable team list

This commit is contained in:
Sebastien Riviere
2025-08-30 16:19:30 +02:00
parent cb534ed1aa
commit e5d90d824e
39 changed files with 163 additions and 119 deletions

View File

@@ -37,13 +37,14 @@ export function playersBroadcast(event, data) {
*/
export function sendUpdatedTeamInformations(teamId) {
const team = game.getTeam(teamId);
if (!team) return;
teamBroadcast(teamId, "update_team", {
// Identification
name: team.name,
captureCode: team.captureCode,
// Chasing
captured: team.captured,
enemyName: game.getTeam(team.chasing).name,
enemyName: game.getTeam(team.chasing)? game.getTeam(team.chasing).name : null,
// Locations
lastSentLocation: team.lastSentLocation,
enemyLocation: team.enemyLocation,