Compare commits

..

No commits in common. "5948960a68b7f560edce7ca3d4be567db099cb08" and "03bc18e679271d296e0fb98657eb0b1ebf1a29f6" have entirely different histories.

3 changed files with 2 additions and 4 deletions

View File

@ -25,8 +25,6 @@ export class SimpleGamesystemParser {
for(let i=0; i<jsonObject.states.length; i++) {
const state = new SimpleState(jsonObject.states[i].stateLabel, jsonObject.states[i].stateDescription);
const conditions = jsonObject.states[i].conditions
state.initial = jsonObject.states[i].initial
for(let j=0; j<conditions.length; j++) {
const searchedScriptAccount = scriptAccounts.find(scriptAccount => scriptAccount.componentName === conditions[j].scriptAccount)
if(searchedScriptAccount != undefined) {

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": ""