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 {
if(key === 'referenceGamesystem' || key === 'scriptAccount') {
return value.componentName
} else if(key === 'startingState' || key === 'endingState') {
return value.stateLabel
}
return value;
}

View File

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