diff --git a/src/app/game-model/fs/store/StoreProject.ts b/src/app/game-model/fs/store/StoreProject.ts index ce3e0bb..6f2cffe 100644 --- a/src/app/game-model/fs/store/StoreProject.ts +++ b/src/app/game-model/fs/store/StoreProject.ts @@ -57,7 +57,7 @@ export class StoreProject { return value.componentName } - if(key === 'incomingTransitions' || key === 'outgoingTransitions' || key === 'unsaved' || key === 'type') { + if(key === 'parentGamesystem' || key === 'incomingTransitions' || key === 'outgoingTransitions' || key === 'unsaved' || key === 'type') { return undefined; } else { return value; diff --git a/testModel/gamesystems/Weather/Parent Weather.json b/testModel/gamesystems/Weather/Parent Weather.json new file mode 100644 index 0000000..d4797d0 --- /dev/null +++ b/testModel/gamesystems/Weather/Parent Weather.json @@ -0,0 +1,6 @@ +{ + "componentName": "Parent Weather", + "componentDescription": "", + "states": [], + "transitions": [] +} \ No newline at end of file diff --git a/testModel/gamesystems/Weather/Weather(Child).json b/testModel/gamesystems/Weather/Weather(Child).json new file mode 100644 index 0000000..76b2e76 --- /dev/null +++ b/testModel/gamesystems/Weather/Weather(Child).json @@ -0,0 +1,49 @@ +{ + "componentName": "Weather(Child)", + "componentDescription": "", + "states": [ + { + "initial": false, + "conditions": [ + { + "scriptAccount": "Temperature", + "minValue": 0, + "maxValue": "50" + } + ], + "stateLabel": "Sonnig", + "stateDescription": "Die Sonne scheint" + }, + { + "initial": false, + "conditions": [ + { + "scriptAccount": "Temperature", + "minValue": "50", + "maxValue": "75" + } + ], + "stateLabel": "Wolkig", + "stateDescription": "" + } + ], + "transitions": [ + { + "scriptAccountActions": [ + { + "changingValue": 10, + "scriptAccount": "Temperature" + } + ], + "scriptAccountConditions": [ + { + "scriptAccount": "Temperature", + "minValue": 0, + "maxValue": "10" + } + ], + "startingState": "Sonnig", + "endingState": "Wolkig" + } + ] +} \ No newline at end of file diff --git a/testModel/gamesystems/Weather/Weather.json b/testModel/gamesystems/Weather/Weather.json new file mode 100644 index 0000000..f989303 --- /dev/null +++ b/testModel/gamesystems/Weather/Weather.json @@ -0,0 +1,4 @@ +{ + "componentName": "Weather", + "componentDescription": "" +} \ No newline at end of file