Open Editor for ProductGamesystem for ProductTemplatesystems
All checks were successful
E2E Testing / test (push) Successful in 1m29s

This commit is contained in:
Sebastian Böckelmann 2024-04-13 06:57:58 +02:00
parent 66697ced00
commit 23834c1ace
4 changed files with 14 additions and 3 deletions

View File

@ -8,6 +8,7 @@ import {ProductGamesystem} from "../../../../project/game-model/gamesystems/Prod
import {SimpleGamesystem} from "../../../../project/game-model/gamesystems/SimpleGamesystem";
import {ProductState} from "../../../../project/game-model/gamesystems/states/ProductState";
import {State} from "../../../../project/game-model/gamesystems/states/State";
import {SimpleTemplateGamesystem} from "../../../../project/game-model/gamesystems/SimpleTemplateGamesystem";
@Component({
selector: 'app-product-state-editor',
@ -45,7 +46,7 @@ export class ProductStateEditorComponent implements OnInit{
generateColumnNamesRecursively(gamesystem: ProductGamesystem, nestedColumnName: string) {
gamesystem.innerGamesystems.forEach(innerGamesystem => {
if(innerGamesystem instanceof SimpleGamesystem) {
if(innerGamesystem instanceof SimpleGamesystem || innerGamesystem instanceof SimpleTemplateGamesystem) {
this.displayedColumns.push(nestedColumnName + innerGamesystem.componentName);
} else {
this.generateColumnNamesRecursively(innerGamesystem as ProductGamesystem, nestedColumnName + innerGamesystem.componentName + ".");

View File

@ -3,7 +3,10 @@
"componentDescription": "",
"childsystems": [
{
"componentName": "New Gamesystem 1"
"componentName": "SimpleTemplate 1"
},
{
"componentName": "SimpleTemplate 2"
}
],
"templateType": 1

View File

@ -1,5 +1,5 @@
{
"componentName": "New Gamesystem 1",
"componentName": "SimpleTemplate 1",
"componentDescription": "",
"states": [],
"transitions": [],

View File

@ -0,0 +1,7 @@
{
"componentName": "SimpleTemplate 2",
"componentDescription": "",
"states": [],
"transitions": [],
"templateType": 1
}