ConceptCreator/src/app/game-model/gamesystems/Transition.ts
Sebastian Böckelmann d5f593a824
All checks were successful
E2E Testing / test (push) Successful in 1m24s
Datastructure for Gamesystems and Create and Remove SimpleStates and Transitions
2024-02-05 20:44:39 +01:00

16 lines
362 B
TypeScript

import {State} from "./State";
export abstract class Transition<S extends State<any>> {
startingState: S
endingState: S
constructor(startingState: S, endingState: S) {
this.startingState = startingState;
this.endingState = endingState;
this.startingState.addOutgoingTransition(this);
this.endingState.addIncomingTransition(this);
}
}