issue-15 #21
@ -177,6 +177,7 @@ export class AppComponent implements OnInit{
 | 
			
		||||
 | 
			
		||||
    gameModel.scriptAccounts = scriptAccounts
 | 
			
		||||
    gameModel.gamesystems = gamesystems
 | 
			
		||||
    gameModel.generateProductSystemContents()
 | 
			
		||||
 | 
			
		||||
    console.log(gameModel.scriptAccounts)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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();
 | 
			
		||||
      }
 | 
			
		||||
    })
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user