From 32656267ace07150fdfb9da842584b26df026d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B6ckelmann?= Date: Fri, 22 Mar 2024 07:45:59 +0100 Subject: [PATCH] Generate Content of Productgamesystems --- src/app/app.component.ts | 1 + src/app/project/game-model/GameModel.ts | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index c1f5ec7..2467861 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -177,6 +177,7 @@ export class AppComponent implements OnInit{ gameModel.scriptAccounts = scriptAccounts gameModel.gamesystems = gamesystems + gameModel.generateProductSystemContents() console.log(gameModel.scriptAccounts) diff --git a/src/app/project/game-model/GameModel.ts b/src/app/project/game-model/GameModel.ts index 7c98dcf..625d3d2 100644 --- a/src/app/project/game-model/GameModel.ts +++ b/src/app/project/game-model/GameModel.ts @@ -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(); + } + }) + } }