From 224468f08853c5d841e99ce5b5adb7cfc9e1be8a Mon Sep 17 00:00:00 2001 From: Sebastian Boeckelmann Date: Sat, 15 Jun 2024 14:03:18 +0200 Subject: [PATCH] Include ScriptAccountEditor in ProductTransitionEditor --- .../product-transition-editor.component.html | 3 ++- .../gamesystems/ProductGamesystem/Letter.json | 21 ++++++++++++++++++- .../gamesystems/ProductGamesystem/Number.json | 21 ++++++++++++++++++- 3 files changed, 42 insertions(+), 3 deletions(-) diff --git a/src/app/editor/gamesystem-editor/transition-editor/product-transition-editor/product-transition-editor.component.html b/src/app/editor/gamesystem-editor/transition-editor/product-transition-editor/product-transition-editor.component.html index 8861ae6..53e49ca 100644 --- a/src/app/editor/gamesystem-editor/transition-editor/product-transition-editor/product-transition-editor.component.html +++ b/src/app/editor/gamesystem-editor/transition-editor/product-transition-editor/product-transition-editor.component.html @@ -62,7 +62,8 @@
- + +
diff --git a/testModel/gamesystems/ProductGamesystem/Letter.json b/testModel/gamesystems/ProductGamesystem/Letter.json index 024eea1..5f64714 100644 --- a/testModel/gamesystems/ProductGamesystem/Letter.json +++ b/testModel/gamesystems/ProductGamesystem/Letter.json @@ -7,8 +7,27 @@ "conditions": [], "stateLabel": "A", "stateDescription": "" + }, + { + "initial": false, + "conditions": [], + "stateLabel": "B", + "stateDescription": "" + } + ], + "transitions": [ + { + "scriptAccountActions": [ + { + "characterDependency": 2, + "changingValue": 6, + "scriptAccount": "Test" + } + ], + "scriptAccountConditions": [], + "startingState": "A", + "endingState": "B" } ], - "transitions": [], "generateIsolatedStates": false } \ No newline at end of file diff --git a/testModel/gamesystems/ProductGamesystem/Number.json b/testModel/gamesystems/ProductGamesystem/Number.json index a774068..59ae3ac 100644 --- a/testModel/gamesystems/ProductGamesystem/Number.json +++ b/testModel/gamesystems/ProductGamesystem/Number.json @@ -7,8 +7,27 @@ "conditions": [], "stateLabel": "1", "stateDescription": "" + }, + { + "initial": false, + "conditions": [], + "stateLabel": "2", + "stateDescription": "" + } + ], + "transitions": [ + { + "scriptAccountActions": [ + { + "characterDependency": 2, + "changingValue": 5, + "scriptAccount": "Test" + } + ], + "scriptAccountConditions": [], + "startingState": "1", + "endingState": "2" } ], - "transitions": [], "generateIsolatedStates": false } \ No newline at end of file