ItemMap Class

Contains a map of Items.

Extends

Methods

Name Description
constructor(items?: ItemDefBase[]): ItemMap    
addItem(item: ItemDefBase): void    
addItems(items: ItemDefBase[]): void    

Inherited methods

Name Inherited from Description
Symbol.iterator(): IterableIterator<[string, ItemDefBase]> Map.Symbol Returns an iterable of entries in the map.
clear(): void Map<string, ItemDefBase>  
delete(key: string): boolean Map<string, ItemDefBase>  
entries(): IterableIterator<[string, ItemDefBase]> Map<string, ItemDefBase> Returns an iterable of key, value pairs for every entry in the map.
forEach(callbackfn: (value: ItemDefBase, key: string, map: Map<string, ItemDefBase>) => void, thisArg?: any): void Map<string, ItemDefBase>  
get(key: string): ItemDefBase | undefined Map<string, ItemDefBase>  
has(key: string): boolean Map<string, ItemDefBase>  
keys(): IterableIterator<string> Map<string, ItemDefBase> Returns an iterable of keys in the map
set(key: string, value: ItemDefBase): this Map<string, ItemDefBase>  
values(): IterableIterator<ItemDefBase> Map<string, ItemDefBase> Returns an iterable of values in the map

Properties

Name Type Description
Map Static MapConstructor    

Inherited properties

Name Type Inherited from Description
size number Map<string, ItemDefBase>  
Symbol.toStringTag string Map.Symbol  

Defined in

Last Updated: 05 June, 2020