issue-15 #21

Merged
sebastian merged 60 commits from issue-15 into main 2024-03-22 08:46:49 +01:00
7 changed files with 72 additions and 4 deletions
Showing only changes of commit 03bc18e679 - Show all commits

View File

@ -62,7 +62,7 @@
<td mat-cell *matCellDef="let element" [attr.colspan]="columnsToDisplayWithExpand.length">
<div class="example-element-detail"
[@detailExpand]="element == expandedElement ? 'expanded' : 'collapsed'">
<p>Expanded Row</p>
<app-scriptaccount-condition-editor [enableEditiong]="false" [conditions]="element.scriptAccountConditions" ></app-scriptaccount-condition-editor>
</div>
</td>
</ng-container>

View File

@ -26,7 +26,7 @@ export class ScriptAccountCondition {
combineCondition(condition: ScriptAccountCondition) {
if(condition.scriptAccount === this.scriptAccount) {
const scriptAccount = new ScriptAccountCondition(this.scriptAccount, this.minValue, this.maxValue);
scriptAccount.combineCondition(condition);
scriptAccount.extendCondition(condition);
return scriptAccount;
}
return undefined;

View File

@ -0,0 +1,32 @@
{
"componentName": "A",
"componentDescription": "",
"states": [
{
"initial": false,
"conditions": [],
"stateLabel": "A",
"stateDescription": ""
},
{
"initial": false,
"conditions": [],
"stateLabel": "B",
"stateDescription": ""
}
],
"transitions": [
{
"scriptAccountActions": [],
"scriptAccountConditions": [
{
"scriptAccount": "Temperature",
"minValue": 0,
"maxValue": "10"
}
],
"startingState": "A",
"endingState": "B"
}
]
}

View File

@ -0,0 +1,32 @@
{
"componentName": "Numbers",
"componentDescription": "",
"states": [
{
"initial": false,
"conditions": [],
"stateLabel": "1",
"stateDescription": ""
},
{
"initial": false,
"conditions": [
{
"scriptAccount": "Luftfeuchtigkeit",
"minValue": 0,
"maxValue": "5"
}
],
"stateLabel": "2",
"stateDescription": ""
}
],
"transitions": [
{
"scriptAccountActions": [],
"scriptAccountConditions": [],
"startingState": "1",
"endingState": "2"
}
]
}

View File

@ -0,0 +1,4 @@
{
"componentName": "ParentTestSystem",
"componentDescription": ""
}

View File

@ -3,7 +3,7 @@
"componentDescription": "Ein simples Gamesystem zur Modellierung verschiedener Jahreszeiten und deren Übergänge",
"states": [
{
"initial": true,
"initial": false,
"conditions": [
{
"scriptAccount": "Temperature",

View File

@ -3,7 +3,7 @@
"componentDescription": "A small Gamesystem about local weather events",
"states": [
{
"initial": true,
"initial": false,
"conditions": [],
"stateLabel": "Sonne",
"stateDescription": ""