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(); + } + }) + } }