Store templateTransitions
Some checks failed
E2E Testing / test (push) Failing after 1m33s

This commit is contained in:
Sebastian Böckelmann 2024-03-22 20:01:10 +01:00
parent c38dcc556c
commit 1052eeb047
2 changed files with 24 additions and 13 deletions

View File

@ -21,6 +21,8 @@ export class CharacterSerializer {
} else { } else {
if(key === 'referenceGamesystem' || key === 'scriptAccount') { if(key === 'referenceGamesystem' || key === 'scriptAccount') {
return value.componentName return value.componentName
} else if(key === 'startingState' || key === 'endingState') {
return value.stateLabel
} }
return value; return value;
} }

View File

@ -6,24 +6,33 @@
"templateStates": [ "templateStates": [
{ {
"initial": false, "initial": false,
"conditions": [], "conditions": [
{
"scriptAccount": "Luftfeuchtigkeit",
"minValue": 0,
"maxValue": "10"
}
],
"stateLabel": "Wütend" "stateLabel": "Wütend"
} }
], ],
"templateTransitions": [ "templateTransitions": [
{ {
"scriptAccountActions": [], "scriptAccountActions": [
"scriptAccountConditions": [], {
"startingState": { "changingValue": 10,
"initial": true, "scriptAccount": "Luftfeuchtigkeit"
"conditions": [], }
"stateLabel": "Glücklich" ],
}, "scriptAccountConditions": [
"endingState": { {
"initial": false, "scriptAccount": "New ScriptAccount",
"conditions": [], "minValue": 0,
"stateLabel": "Wütend" "maxValue": "10"
} }
],
"startingState": "Glücklich",
"endingState": "Traurig"
} }
], ],
"referenceGamesystem": "Characterstimmung" "referenceGamesystem": "Characterstimmung"