Load Template Status of Gamesystem from disk
Some checks failed
E2E Testing / test (push) Failing after 1m32s
Some checks failed
E2E Testing / test (push) Failing after 1m32s
This commit is contained in:
parent
a4be4d623d
commit
81971a48ca
@ -1,6 +1,6 @@
|
|||||||
<mat-form-field appearance="fill">
|
<mat-form-field appearance="fill">
|
||||||
|
<mat-label>Templatetype</mat-label>
|
||||||
<mat-select [(ngModel)]="gamesystem!.template">
|
<mat-select [(ngModel)]="gamesystem!.template">
|
||||||
<mat-label>Templatetype</mat-label>
|
|
||||||
<mat-option [value]="TemplateType.NONE">None</mat-option>
|
<mat-option [value]="TemplateType.NONE">None</mat-option>
|
||||||
<mat-option [value]="TemplateType.CHARACTER">Character</mat-option>
|
<mat-option [value]="TemplateType.CHARACTER">Character</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
|
@ -47,6 +47,8 @@ export class GamesystemParser {
|
|||||||
|
|
||||||
const transitionParser = new TransitionParser(simpleGamesystem.states, this.scriptAccounts)
|
const transitionParser = new TransitionParser(simpleGamesystem.states, this.scriptAccounts)
|
||||||
simpleGamesystem.transitions = transitionParser.parseTransitions(gamesystemData.transitions)
|
simpleGamesystem.transitions = transitionParser.parseTransitions(gamesystemData.transitions)
|
||||||
|
|
||||||
|
simpleGamesystem.template = gamesystemData.template;
|
||||||
return simpleGamesystem
|
return simpleGamesystem
|
||||||
}
|
}
|
||||||
|
|
||||||
|
7
testModel/gamesystems/Characterstimmung.json
Normal file
7
testModel/gamesystems/Characterstimmung.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"componentName": "Characterstimmung",
|
||||||
|
"componentDescription": "",
|
||||||
|
"states": [],
|
||||||
|
"transitions": [],
|
||||||
|
"template": 1
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user