0
0
Fork 0

Add attribute for getting an array of players and their roles.

This commit is contained in:
Oliver-Akins 2021-01-01 16:03:03 -07:00
parent aed8f3972c
commit 5ce7735d8f

View file

@ -50,6 +50,17 @@ export class Game {
return this._objectCard; return this._objectCard;
}; };
get playerData() {
let players: player[] = [];
for (var player of this.players) {
players.push({
name: player.name,
role: player.role,
team: player.team,
});
};
return players
}
private parseDeckCSV(conf: config): any { private parseDeckCSV(conf: config): any {