AthenaShared.interfaces.item.BaseItem ​
shared/interfaces/item.BaseItem
The BaseItem is used as a way for the main items to point towards item information. This item stored in the database is used to construct front facing item information.
Interface
BaseItem
Type parameters ​
| Name | Type |
|---|---|
Behavior | DefaultItemBehavior |
CustomData | {} |
Hierarchy ​
SharedItem<CustomData>↳
BaseItem
Properties ​
_id ​
• Optional _id: unknown
Database entry for item. Do not add / append.
Defined in ​
behavior ​
• Optional behavior: Behavior
Behavior associated with this item.
Defined in ​
consumableEventToCall ​
• Optional consumableEventToCall: string | string[]
The event to call when this item is consumed.
Defined in ​
customEventsToCall ​
• Optional customEventsToCall: CustomContextAction[]
Custom context actions in addition to the standard consumable event.
Defined in ​
data ​
• data: CustomData
Any custom data assigned to this item.
Inherited from ​
Defined in ​
dbName ​
• dbName: string
The matching database name for this item.
Inherited from ​
Defined in ​
icon ​
• icon: string
A client-side icon name. They are specified and created by you.
Defined in ​
maxStack ​
• Optional maxStack: number
If this value is defined it will be used as the maximum stack size for the item.
Defined in ​
model ​
• Optional model: string
The drop model of this item when it is on the ground. If not defined it will default to a box of some sort.
Defined in ​
msTimeout ​
• Optional msTimeout: number
An expiration time in milliseconds before the item drop is cleared. Stored items come with an expiration date.
Defined in ​
name ​
• name: string
The name of this item.
Defined in ​
version ​
• Optional version: number
The version of this item it is based upon.
Inherited from ​
Defined in ​
weight ​
• Optional weight: number
The weight of this item.
V5 Docs