import Container from 'WTF-Adventure/WTF-Adventure/server/js/game/entity/character/player/containers/container.js'
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
add(id: *, count: *, ability: *, abilityLevel: *): * |
|
public |
canHold(id: *, count: *): * |
|
public |
check() |
|
public |
|
|
public |
containsSpaces(count: *): * |
|
public |
getArray(): {"username": *, "ids": *, "counts": *, "abilities": *, "abilityLevels": *} |
|
public |
getEmptySlot(): * |
|
public |
getIndex(id: *): * |
|
public |
getSlot(id: *): * |
|
public |
hasSpace(): * |
|
public |
loadContainer(ids: *, counts: *, abilities: *, abilityLevels: *) Fill each slot with manual data or the database |
|
public |
|
|
public |
|
Public Constructors
public constructor() source
Public Members
public owner: * source
public size: * source
public slots: *[] source
public type: * source
Public Methods
public add(id: *, count: *, ability: *, abilityLevel: *): * source
Params:
Name | Type | Attribute | Description |
id | * | ||
count | * | ||
ability | * | ||
abilityLevel | * |
Return:
* |
public canHold(id: *, count: *): * source
Params:
Name | Type | Attribute | Description |
id | * | ||
count | * |
Return:
* |
public check() source
public getArray(): {"username": *, "ids": *, "counts": *, "abilities": *, "abilityLevels": *} source
Return:
{"username": *, "ids": *, "counts": *, "abilities": *, "abilityLevels": *} |
public loadContainer(ids: *, counts: *, abilities: *, abilityLevels: *) source
Fill each slot with manual data or the database
Params:
Name | Type | Attribute | Description |
ids | * | ||
counts | * | ||
abilities | * | ||
abilityLevels | * |