import { ItemBaseClassService } from "https://deno.land/x/sptaki@1.2.0/services/mod.ts";
Cache the baseids for each item in the tiems db inside a dictionary
Constructors
Properties
protected
databaseServer: DatabaseServerprotected
items: Record<string, ITemplateItem>protected
localisationService: LocalisationServiceprotected
logger: ILoggerMethods
protected
addBaseItems(itemIdToUpdate: string, item: ITemplateItem): voidHelper method, recursivly iterate through items parent items, finding and adding ids to dictionary
getItemBaseClasses(itemTpl: string): string[]
Get base classes item inherits from
hydrateItemBaseClassCache(): void
Create cache and store inside ItemBaseClassService Store a dict of an items tpl to the base classes it and its parents have
itemHasBaseClass(itemTpl: string, baseClasses: string[]): boolean
Does item tpl inherit from the requested base class