Pass TemplateReference to ProductState and productTransition Editor
All checks were successful
E2E Testing / test (push) Successful in 1m31s
All checks were successful
E2E Testing / test (push) Successful in 1m31s
This commit is contained in:
parent
40a05495c6
commit
7acf334db9
@ -1,4 +1,4 @@
|
|||||||
<app-simple-gamesystem-editor *ngIf="isSimpleGamesystem()" [simpleGamesystem]="convertGamesystemToSimpleGamesystem()" [scriptAccunts]="scriptAccounts"
|
<app-simple-gamesystem-editor *ngIf="isSimpleGamesystem()" [simpleGamesystem]="convertGamesystemToSimpleGamesystem()" [scriptAccunts]="scriptAccounts"
|
||||||
[templateReference]="templateReference"></app-simple-gamesystem-editor>
|
[templateReference]="templateReference"></app-simple-gamesystem-editor>
|
||||||
<app-product-gamesystem-editor *ngIf="!isSimpleGamesystem()" [gamesystem]="convertGamesystemToProductGamesystem()"
|
<app-product-gamesystem-editor *ngIf="!isSimpleGamesystem()" [gamesystem]="convertGamesystemToProductGamesystem()"
|
||||||
(onOpenGamesystemEditor)="onOpenGamesystemEditor($event)"></app-product-gamesystem-editor>
|
(onOpenGamesystemEditor)="onOpenGamesystemEditor($event)" [templateReference]="templateReference"></app-product-gamesystem-editor>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<app-product-state-editor [gamesystem]="gamesystem" (onOpenGamesystemEditor)="onOpenGamesystemEditor($event)"></app-product-state-editor>
|
<app-product-state-editor [templateReference]="templateReference" [gamesystem]="gamesystem" (onOpenGamesystemEditor)="onOpenGamesystemEditor($event)"></app-product-state-editor>
|
||||||
<div id="productStateEditor">
|
<div id="productStateEditor">
|
||||||
<app-product-transition-editor [gamesystem]="gamesystem" (onOpenGamesystem)="onOpenGamesystemEditor($event)"></app-product-transition-editor>
|
<app-product-transition-editor [templateReference]="templateReference" [gamesystem]="gamesystem" (onOpenGamesystem)="onOpenGamesystemEditor($event)"></app-product-transition-editor>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,6 +4,7 @@ import {
|
|||||||
} from "../transition-editor/product-transition-editor/product-transition-editor.component";
|
} from "../transition-editor/product-transition-editor/product-transition-editor.component";
|
||||||
import {ProductGamesystem} from "../../../project/game-model/gamesystems/ProductGamesystem";
|
import {ProductGamesystem} from "../../../project/game-model/gamesystems/ProductGamesystem";
|
||||||
import {SimpleGamesystem} from "../../../project/game-model/gamesystems/SimpleGamesystem";
|
import {SimpleGamesystem} from "../../../project/game-model/gamesystems/SimpleGamesystem";
|
||||||
|
import {Character} from "../../../project/game-model/characters/Character";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -15,6 +16,7 @@ import {SimpleGamesystem} from "../../../project/game-model/gamesystems/SimpleGa
|
|||||||
export class ProductGamesystemEditorComponent {
|
export class ProductGamesystemEditorComponent {
|
||||||
|
|
||||||
@Input() gamesystem: ProductGamesystem | undefined
|
@Input() gamesystem: ProductGamesystem | undefined
|
||||||
|
@Input() templateReference: Character | undefined
|
||||||
@Output("onOpenGamesystemEditor") openGamesystemEditorEmitter = new EventEmitter<SimpleGamesystem>();
|
@Output("onOpenGamesystemEditor") openGamesystemEditorEmitter = new EventEmitter<SimpleGamesystem>();
|
||||||
|
|
||||||
onOpenGamesystemEditor(gamesystem: SimpleGamesystem) {
|
onOpenGamesystemEditor(gamesystem: SimpleGamesystem) {
|
||||||
|
@ -4,13 +4,49 @@
|
|||||||
"characterSpecificGamesystems": [
|
"characterSpecificGamesystems": [
|
||||||
{
|
{
|
||||||
"componentName": "SimpleTemplate 1",
|
"componentName": "SimpleTemplate 1",
|
||||||
"states": [],
|
"states": [
|
||||||
"transitions": []
|
{
|
||||||
|
"stateLabel": "1",
|
||||||
|
"conditionMap": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"stateLabel": "2",
|
||||||
|
"conditionMap": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"transitions": [
|
||||||
|
{
|
||||||
|
"scriptAccountActions": [],
|
||||||
|
"scriptAccountConditions": [],
|
||||||
|
"startingState": "1",
|
||||||
|
"endingState": "2",
|
||||||
|
"conditionMap": [],
|
||||||
|
"actionMap": []
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"componentName": "SimpleTemplate 2",
|
"componentName": "SimpleTemplate 2",
|
||||||
"states": [],
|
"states": [
|
||||||
"transitions": []
|
{
|
||||||
|
"stateLabel": "A",
|
||||||
|
"conditionMap": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"stateLabel": "B",
|
||||||
|
"conditionMap": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"transitions": [
|
||||||
|
{
|
||||||
|
"scriptAccountActions": [],
|
||||||
|
"scriptAccountConditions": [],
|
||||||
|
"startingState": "A",
|
||||||
|
"endingState": "B",
|
||||||
|
"conditionMap": [],
|
||||||
|
"actionMap": []
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -1,7 +1,28 @@
|
|||||||
{
|
{
|
||||||
"componentName": "SimpleTemplate 1",
|
"componentName": "SimpleTemplate 1",
|
||||||
"componentDescription": "",
|
"componentDescription": "",
|
||||||
"states": [],
|
"states": [
|
||||||
"transitions": [],
|
{
|
||||||
|
"initial": false,
|
||||||
|
"conditions": [],
|
||||||
|
"stateLabel": "1",
|
||||||
|
"stateDescription": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"initial": false,
|
||||||
|
"conditions": [],
|
||||||
|
"stateLabel": "2",
|
||||||
|
"stateDescription": ""
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"transitions": [
|
||||||
|
{
|
||||||
|
"scriptAccountActions": [],
|
||||||
|
"scriptAccountConditions": [],
|
||||||
|
"startingState": "1",
|
||||||
|
"endingState": "2",
|
||||||
|
"actionMap": {}
|
||||||
|
}
|
||||||
|
],
|
||||||
"templateType": 1
|
"templateType": 1
|
||||||
}
|
}
|
@ -1,7 +1,28 @@
|
|||||||
{
|
{
|
||||||
"componentName": "SimpleTemplate 2",
|
"componentName": "SimpleTemplate 2",
|
||||||
"componentDescription": "",
|
"componentDescription": "",
|
||||||
"states": [],
|
"states": [
|
||||||
"transitions": [],
|
{
|
||||||
|
"initial": false,
|
||||||
|
"conditions": [],
|
||||||
|
"stateLabel": "A",
|
||||||
|
"stateDescription": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"initial": false,
|
||||||
|
"conditions": [],
|
||||||
|
"stateLabel": "B",
|
||||||
|
"stateDescription": ""
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"transitions": [
|
||||||
|
{
|
||||||
|
"scriptAccountActions": [],
|
||||||
|
"scriptAccountConditions": [],
|
||||||
|
"startingState": "A",
|
||||||
|
"endingState": "B",
|
||||||
|
"actionMap": {}
|
||||||
|
}
|
||||||
|
],
|
||||||
"templateType": 1
|
"templateType": 1
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user