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
__@iterator(): IterableIterator<[string, ItemDefBase]> [Map.Symbol Returns an iterable of entries in the map.
clear(): void Map  
delete(key: string): boolean Map  
entries(): IterableIterator<[string, ItemDefBase]> Map 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  
get(key: string): ItemDefBase | undefined Map  
has(key: string): boolean Map  
keys(): IterableIterator<string> Map Returns an iterable of keys in the map
set(key: string, value: ItemDefBase): this Map  
values(): IterableIterator<ItemDefBase> Map Returns an iterable of values in the map

Properties

Name Type Description
Map Static MapConstructor    

Inherited properties

Name Type Inherited from Description
__@toStringTag string [Map.Symbol  
size number Map  

Defined in

Last Updated: 08 January, 2020