Generate Content of Productgamesystems
Some checks failed
E2E Testing / test (push) Failing after 1m35s

This commit is contained in:
Sebastian Böckelmann 2024-03-22 07:45:59 +01:00
parent 50963387f0
commit 32656267ac
2 changed files with 9 additions and 0 deletions

View File

@ -177,6 +177,7 @@ export class AppComponent implements OnInit{
gameModel.scriptAccounts = scriptAccounts
gameModel.gamesystems = gamesystems
gameModel.generateProductSystemContents()
console.log(gameModel.scriptAccounts)

View File

@ -90,4 +90,12 @@ export class GameModel {
addScriptAccount(scriptAccount: ScriptAccount) {
this.scriptAccounts.push(scriptAccount);
}
generateProductSystemContents() {
this.gamesystems.forEach(gamesystem => {
if(gamesystem instanceof ProductGamesystem) {
gamesystem.generateFromChildsystems();
}
})
}
}