new ItemFactory()
Methods
-
create(area, entityRef) → {Item}
-
Create a new instance of an item by EntityReference. Resulting item will not be held or equipped and will not have its default contents. If you want it to also populate its default contents you must manually call
item.hydrate(state)
Parameters:
Name Type Description area
Area entityRef
string Returns:
Item