h1z1-server
Preparing search index...
servers/ZoneServer2016/managers/accountinventorymanager
AccountInventoryManager
Class AccountInventoryManager
Index
Constructors
constructor
Properties
is
In
Solo
Mode
mongodb
Collection
Methods
add
Account
Item
get
Account
Item
get
Account
Items
init
remove
Account
Item
rollback
Items
update
Account
Item
Constructors
constructor
new
AccountInventoryManager
(
zoneServer
:
ZoneServer2016
)
:
AccountInventoryManager
Parameters
zoneServer
:
ZoneServer2016
Returns
AccountInventoryManager
Properties
is
In
Solo
Mode
isInSoloMode
:
boolean
mongodb
Collection
mongodbCollection
:
Collection
Methods
add
Account
Item
addAccountItem
(
loginSessionId
:
string
,
item
:
BaseItem
,
)
:
Promise
<
undefined
|
InsertOneResult
<
Document
>
|
UpdateResult
<
Document
>
>
Parameters
loginSessionId
:
string
item
:
BaseItem
Returns
Promise
<
undefined
|
InsertOneResult
<
Document
>
|
UpdateResult
<
Document
>
>
get
Account
Item
getAccountItem
(
loginSessionId
:
string
,
itemDefinitionId
:
number
,
)
:
Promise
<
null
|
AccountItem
>
Parameters
loginSessionId
:
string
itemDefinitionId
:
number
Returns
Promise
<
null
|
AccountItem
>
get
Account
Items
getAccountItems
(
loginSessionId
:
string
)
:
Promise
<
AccountItem
[]
>
Parameters
loginSessionId
:
string
Returns
Promise
<
AccountItem
[]
>
init
init
(
collection
:
Collection
)
:
void
Parameters
collection
:
Collection
Returns
void
remove
Account
Item
removeAccountItem
(
loginSessionId
:
string
,
item
:
BaseItem
,
)
:
Promise
<
undefined
|
DeleteResult
>
Parameters
loginSessionId
:
string
item
:
BaseItem
Returns
Promise
<
undefined
|
DeleteResult
>
rollback
Items
rollbackItems
(
loginSessionId
:
string
,
removedItems
:
{
count
:
number
;
inventoryItem
:
AccountItem
}
[]
,
)
:
Promise
<
void
>
Parameters
loginSessionId
:
string
removedItems
:
{
count
:
number
;
inventoryItem
:
AccountItem
}
[]
Returns
Promise
<
void
>
update
Account
Item
updateAccountItem
(
loginSessionId
:
string
,
item
:
BaseItem
,
)
:
Promise
<
undefined
|
UpdateResult
<
Document
>
>
Parameters
loginSessionId
:
string
item
:
BaseItem
Returns
Promise
<
undefined
|
UpdateResult
<
Document
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
is
In
Solo
Mode
mongodb
Collection
Methods
add
Account
Item
get
Account
Item
get
Account
Items
init
remove
Account
Item
rollback
Items
update
Account
Item
h1z1-server
Loading...