ConceptCreator/src/app/project/game-model/templates/simpleGamesystem/SimpleTemplateState.ts
Sebastian Böckelmann cd48a10084
All checks were successful
E2E Testing / test (push) Successful in 1m32s
Introduce Basic concept of Templates for SimpleGamesystems and Characters
2024-04-13 12:30:42 +02:00

17 lines
565 B
TypeScript

import {SimpleState} from "../../gamesystems/states/SimpleState";
import {TemplateElement} from "../TemplateElement";
import {ScriptAccountCondition} from "../../gamesystems/conditions/ScriptAccountCondition";
export class SimpleTemplateState extends SimpleState {
conditionMap: Map<TemplateElement, ScriptAccountCondition[]> = new Map();
addTemplateElement(templateElement: TemplateElement) {
this.conditionMap.set(templateElement, [])
}
removeTemplateElement(templateElement: TemplateElement) {
this.conditionMap.delete(templateElement)
}
}