Update type signature of the objects array before population.
This commit is contained in:
parent
125b941f55
commit
6be700d37c
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ export class Game {
|
||||||
|
|
||||||
// Parse the object deck from CSV
|
// Parse the object deck from CSV
|
||||||
let objectsCSV = readFileSync(conf.game.cards.objects, `utf-8`).replace(/\r/g, ``);
|
let objectsCSV = readFileSync(conf.game.cards.objects, `utf-8`).replace(/\r/g, ``);
|
||||||
let objects: string[][] = [];
|
let objects: object_deck[] = [];
|
||||||
for (var line of objectsCSV.split(`\n`).slice(1)) {
|
for (var line of objectsCSV.split(`\n`).slice(1)) {
|
||||||
objects.push(line.split(`,`));
|
objects.push(line.split(`,`));
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue