diff --git a/src/app/editor/gamesystem-editor/product-gamesystem-editor/product-gamesystem-editor.component.html b/src/app/editor/gamesystem-editor/product-gamesystem-editor/product-gamesystem-editor.component.html
index 0eee76f..fde7130 100644
--- a/src/app/editor/gamesystem-editor/product-gamesystem-editor/product-gamesystem-editor.component.html
+++ b/src/app/editor/gamesystem-editor/product-gamesystem-editor/product-gamesystem-editor.component.html
@@ -1,3 +1,4 @@
+Generate Isolated States
diff --git a/src/app/project/game-model/gamesystems/ProductGamesystem.ts b/src/app/project/game-model/gamesystems/ProductGamesystem.ts
index eade33e..00889a5 100644
--- a/src/app/project/game-model/gamesystems/ProductGamesystem.ts
+++ b/src/app/project/game-model/gamesystems/ProductGamesystem.ts
@@ -16,6 +16,7 @@ import {IsolatedProductStateGenerator} from "./productSystemGenerator/IsolatedPr
export class ProductGamesystem extends Gamesystem
{
innerGamesystems: Gamesystem, Transition>[] = [];
+ generateIsolatedStates: boolean = false
static constructFromSimpleGamesystem(simpleGamesystem: SimpleGamesystem, gameModel: GameModel) {
const productGamesystem = new ProductGamesystem(simpleGamesystem.componentName, simpleGamesystem.componentDescription);
@@ -76,8 +77,10 @@ export class ProductGamesystem extends Gamesystem, Transition>) {
diff --git a/src/app/project/game-model/templates/productGamesystem/ProductTemplateSystem.ts b/src/app/project/game-model/templates/productGamesystem/ProductTemplateSystem.ts
index 1e5a9da..62816c4 100644
--- a/src/app/project/game-model/templates/productGamesystem/ProductTemplateSystem.ts
+++ b/src/app/project/game-model/templates/productGamesystem/ProductTemplateSystem.ts
@@ -32,10 +32,14 @@ export class ProductTemplateSystem extends ProductGamesystem implements Template
} else {
const productTemplateGenerator = new TemplateProductSystemGenerator(this, templateElement);
productTemplateGenerator.generateFromChildsystems()
+
+ if(this.generateIsolatedStates) {
+ const isolatedTemplateStateGenerator = new IsolatedTemplateStateGenerator(this, templateElement);
+ isolatedTemplateStateGenerator.generateIsolatedProductStates();
+ }
}
- const isolatedTemplateStateGenerator = new IsolatedTemplateStateGenerator(this, templateElement);
- isolatedTemplateStateGenerator.generateIsolatedProductStates();
+
}
}