Add attribute for getting an array of players and their roles.
This commit is contained in:
parent
aed8f3972c
commit
5ce7735d8f
1 changed files with 11 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue