ConceptCreator/src/app/project/game-model/inventory/AbstractItemGroup.ts
Sebastian Böckelmann 73edf03fa0
All checks were successful
E2E Testing / test (push) Successful in 1m37s
Load Itemgroups
2024-05-09 13:33:26 +02:00

21 lines
506 B
TypeScript

import {ItemGroup} from "./ItemGroup";
import {ItemGroupCharacteristic} from "./ItemgroupCharacteristic";
import {ItemgroupType} from "./ItemgroupType";
export class AbstractItemGroup extends ItemGroup {
children: ItemGroup[] = [];
itemgroupType = ItemgroupType.ABSTRACT
addChildItemgroup(itemGroup: ItemGroup) {
this.children.push(itemGroup)
itemGroup.parentGroup = this;
}
protected addCharacteristicValue(characteristic: ItemGroupCharacteristic): void {
//Do Nothing
}
}