Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IItemManager

Hierarchy

  • IItemManager

Implemented by

Index

Methods

addToContainerInternal

  • addToContainerInternal(item: IItem, container: IContainer, movingMultiple: boolean, skipMessage?: boolean): void
  • Parameters

    • item: IItem
    • container: IContainer
    • movingMultiple: boolean
    • Optional skipMessage: boolean

    Returns void

breakContainerOnTile

  • breakContainerOnTile(itemContainer: IItem, x: number, y: number, z: number): void
  • Parameters

    • itemContainer: IItem
    • x: number
    • y: number
    • z: number

    Returns void

checkMilestones

  • Parameters

    Returns void

computeContainerWeight

  • computeContainerWeight(container: IContainer): number
  • Parameters

    Returns number

countItemsInContainer

  • Parameters

    Returns number

countItemsInContainerByGroup

craft

create

createFake

decayItems

  • decayItems(): boolean
  • Returns boolean

derefenceContainerReference

  • Parameters

    Returns any | undefined

generateLookups

  • generateLookups(): void
  • Returns void

getContainerReference

getDefaultDurability

  • getDefaultDurability(): number
  • Returns number

getDefaultItemFromItemGroup

getDisassemblyComponents

getDisassemblyComponentsAsItemTypes

getItemInContainer

  • Parameters

    Returns IItem | undefined

getItemInContainerByGroup

  • getItemInContainerByGroup(container: IContainer, itemTypeGroupSearch: ItemTypeGroup, ignoreItemId?: number, excludeProtectedItems?: boolean): IItem | undefined
  • Parameters

    • container: IContainer
    • itemTypeGroupSearch: ItemTypeGroup
    • Optional ignoreItemId: number
    • Optional excludeProtectedItems: boolean

    Returns IItem | undefined

getItemInInventoryByGroup

  • getItemInInventoryByGroup(player: IPlayer, itemTypeGroupSearch: ItemTypeGroup, ignoreItemId?: number, excludeProtectedItems?: boolean): IItem | undefined
  • Parameters

    • player: IPlayer
    • itemTypeGroupSearch: ItemTypeGroup
    • Optional ignoreItemId: number
    • Optional excludeProtectedItems: boolean

    Returns IItem | undefined

getItemTypeGroupName

getItemsInContainer

  • getItemsInContainer(container: IContainer, includeSubContainers?: boolean, excludeProtectedItems?: boolean): IItemArray
  • Parameters

    • container: IContainer
    • Optional includeSubContainers: boolean
    • Optional excludeProtectedItems: boolean

    Returns IItemArray

getItemsInContainerByGroup

  • Parameters

    • container: IContainer
    • itemGroup: ItemTypeGroup
    • Optional includeSubContainers: boolean
    • Optional excludeProtectedItems: boolean

    Returns IItemArray

getItemsInContainerByType

  • getItemsInContainerByType(container: IContainer, itemType: ItemType, includeSubContainers?: boolean, excludeProtectedItems?: boolean): IItemArray
  • Parameters

    • container: IContainer
    • itemType: ItemType
    • Optional includeSubContainers: boolean
    • Optional excludeProtectedItems: boolean

    Returns IItemArray

getItemsString

getOrderedContainerItems

  • getOrderedContainerItems(container: IContainer, excludeProtectedItems?: boolean): IItem[]
  • Parameters

    • container: IContainer
    • Optional excludeProtectedItems: boolean

    Returns IItem[]

getPlayerWithItemInInventory

  • Parameters

    Returns IPlayer | undefined

getQualityBasedOnSkill

  • getQualityBasedOnSkill(itemQuality: ItemQuality | undefined, skillValue: number, qualityBypass?: boolean): ItemQuality | undefined
  • Parameters

    • itemQuality: ItemQuality | undefined
    • skillValue: number
    • Optional qualityBypass: boolean

    Returns ItemQuality | undefined

getRandomQuality

  • Parameters

    • itemType: ItemType
    • Optional bonusQuality: number

    Returns ItemQuality

getTileContainer

  • getTileContainer(x: number, y: number, z: number): IContainer
  • Parameters

    • x: number
    • y: number
    • z: number

    Returns IContainer

getWeight

  • Parameters

    Returns number

hasAdditionalRequirements

hasRoomInContainer

  • hasRoomInContainer(extraWeight: number, container: IContainer, itemToMove?: IItem): boolean
  • Parameters

    Returns boolean

isContainableInAdjacentContainer

  • Parameters

    Returns boolean

isContainableInContainer

  • Parameters

    Returns boolean

isContainer

isInGroup

  • Parameters

    Returns boolean

isInInventory

  • Parameters

    Returns boolean

isItemInContainer

  • Parameters

    Returns boolean

isItemTypeGroup

isItemTypeInGroup

  • Parameters

    Returns boolean

isTileContainer

  • isTileContainer(container: IContainer | undefined): boolean
  • Parameters

    Returns boolean

loadReferences

  • loadReferences(): void
  • Returns void

loadTileReferences

  • loadTileReferences(): void
  • Returns void

moveAllFromContainerToContainer

  • Parameters

    Returns void

moveAllFromContainerToInventory

moveToContainer

  • Parameters

    Returns void

placeItemsAroundLocation

  • placeItemsAroundLocation(container: IContainer, x: number, y: number, z: number, skipMessage?: boolean): void
  • Parameters

    • container: IContainer
    • x: number
    • y: number
    • z: number
    • Optional skipMessage: boolean

    Returns void

reduceDismantleWeight

  • reduceDismantleWeight(createdItems: IItemArray, itemWeight: number, mod?: number): void
  • Parameters

    • createdItems: IItemArray
    • itemWeight: number
    • Optional mod: number

    Returns void

remove

  • remove(item: IItem): void
  • Parameters

    Returns void

removeContainerItems

  • removeContainerItems(container: IContainer): void
  • Parameters

    Returns void

resetMapsInContainer

  • resetMapsInContainer(container: IContainer): void
  • Parameters

    Returns void

saveTileReferences

  • saveTileReferences(): void
  • Returns void

spawn

  • spawn(itemTypes: ItemType[] | undefined, x: number, y: number, z: number): void
  • Parameters

    • itemTypes: ItemType[] | undefined
    • x: number
    • y: number
    • z: number

    Returns void

updateItemOrder

  • updateItemOrder(container: IContainer, itemOrder: number[] | undefined): void
  • Parameters

    • container: IContainer
    • itemOrder: number[] | undefined

    Returns void

Generated using TypeDoc