@wayward/types 2.11.0-beta.dev.20211129.1 → 2.11.0-beta.dev.20211130.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -140,6 +140,12 @@ export interface IPlayerEvents extends Events<Human> {
|
|
|
140
140
|
* @param slot The slot
|
|
141
141
|
*/
|
|
142
142
|
equip?(item: Item, slot: EquipType): any;
|
|
143
|
+
/**
|
|
144
|
+
* Called when the players quickslots are updated
|
|
145
|
+
* @param quickslot The quick slot
|
|
146
|
+
* @param itemType The item type
|
|
147
|
+
*/
|
|
148
|
+
updatedQuickslotInfo?(quickslot: number, itemType?: ItemType): any;
|
|
143
149
|
/**
|
|
144
150
|
* Called when input is being processed
|
|
145
151
|
* @param player The player object
|
|
@@ -163,7 +163,7 @@ export default class InGameScreen extends BaseScreen {
|
|
|
163
163
|
setQuickSlot(quickSlot: number, itemId?: number, internal?: boolean): boolean;
|
|
164
164
|
setQuickSlotByItemType(quickSlot: number, itemType: ItemType, disabled: boolean, item?: Item | undefined): void;
|
|
165
165
|
setQuickSlotByContextAction(quickSlot: number, action: IContextMenuAction): void;
|
|
166
|
-
addItemToFreeQuickSlot(itemId: number):
|
|
166
|
+
addItemToFreeQuickSlot(itemId: number): boolean;
|
|
167
167
|
clearQuickSlot(quickSlot: number, internal?: boolean): void;
|
|
168
168
|
removeItemFromQuickSlot(itemId?: number, skipSync?: boolean): void;
|
|
169
169
|
setItemQuickslot(item: Item, quickSlot: number | undefined): void;
|
package/package.json
CHANGED