Open Editor for ProductGamesystem for ProductTemplatesystems
All checks were successful
E2E Testing / test (push) Successful in 1m29s
All checks were successful
E2E Testing / test (push) Successful in 1m29s
This commit is contained in:
parent
66697ced00
commit
23834c1ace
@ -8,6 +8,7 @@ import {ProductGamesystem} from "../../../../project/game-model/gamesystems/Prod
|
|||||||
import {SimpleGamesystem} from "../../../../project/game-model/gamesystems/SimpleGamesystem";
|
import {SimpleGamesystem} from "../../../../project/game-model/gamesystems/SimpleGamesystem";
|
||||||
import {ProductState} from "../../../../project/game-model/gamesystems/states/ProductState";
|
import {ProductState} from "../../../../project/game-model/gamesystems/states/ProductState";
|
||||||
import {State} from "../../../../project/game-model/gamesystems/states/State";
|
import {State} from "../../../../project/game-model/gamesystems/states/State";
|
||||||
|
import {SimpleTemplateGamesystem} from "../../../../project/game-model/gamesystems/SimpleTemplateGamesystem";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-product-state-editor',
|
selector: 'app-product-state-editor',
|
||||||
@ -45,7 +46,7 @@ export class ProductStateEditorComponent implements OnInit{
|
|||||||
|
|
||||||
generateColumnNamesRecursively(gamesystem: ProductGamesystem, nestedColumnName: string) {
|
generateColumnNamesRecursively(gamesystem: ProductGamesystem, nestedColumnName: string) {
|
||||||
gamesystem.innerGamesystems.forEach(innerGamesystem => {
|
gamesystem.innerGamesystems.forEach(innerGamesystem => {
|
||||||
if(innerGamesystem instanceof SimpleGamesystem) {
|
if(innerGamesystem instanceof SimpleGamesystem || innerGamesystem instanceof SimpleTemplateGamesystem) {
|
||||||
this.displayedColumns.push(nestedColumnName + innerGamesystem.componentName);
|
this.displayedColumns.push(nestedColumnName + innerGamesystem.componentName);
|
||||||
} else {
|
} else {
|
||||||
this.generateColumnNamesRecursively(innerGamesystem as ProductGamesystem, nestedColumnName + innerGamesystem.componentName + ".");
|
this.generateColumnNamesRecursively(innerGamesystem as ProductGamesystem, nestedColumnName + innerGamesystem.componentName + ".");
|
||||||
|
@ -3,7 +3,10 @@
|
|||||||
"componentDescription": "",
|
"componentDescription": "",
|
||||||
"childsystems": [
|
"childsystems": [
|
||||||
{
|
{
|
||||||
"componentName": "New Gamesystem 1"
|
"componentName": "SimpleTemplate 1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"componentName": "SimpleTemplate 2"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"templateType": 1
|
"templateType": 1
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"componentName": "New Gamesystem 1",
|
"componentName": "SimpleTemplate 1",
|
||||||
"componentDescription": "",
|
"componentDescription": "",
|
||||||
"states": [],
|
"states": [],
|
||||||
"transitions": [],
|
"transitions": [],
|
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"componentName": "SimpleTemplate 2",
|
||||||
|
"componentDescription": "",
|
||||||
|
"states": [],
|
||||||
|
"transitions": [],
|
||||||
|
"templateType": 1
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user