mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 02:10:18 +01:00
Scrollable team list
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user