issue-5-product-gamesystems #10

Merged
sebastian merged 31 commits from issue-5-product-gamesystems into main 2024-02-16 18:00:29 +01:00
Showing only changes of commit 78c992564e - Show all commits

View File

@ -125,12 +125,14 @@ export class ProductGamesystem extends Gamesystem<ProductState, ProductTransitio
}
const binary_productState = this.findProductStateByInnerStates(innerStates);
let binary_productState = this.findProductStateByInnerStates(innerStates);
if(binary_productState == undefined) {
return this.createState(innerStates)!;
} else {
return binary_productState!;
binary_productState = this.createState(innerStates)!;
}
let productInitial = true;
binary_productState.innerStates.forEach(innerState => productInitial = productInitial && innerState.initial)
return binary_productState!;
}