@wayward/types 2.14.0-beta.dev.20231201.1 → 2.14.0-beta.dev.20231202.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.
|
@@ -42,7 +42,9 @@ export default abstract class BasePacket {
|
|
|
42
42
|
protected readInt32(): number;
|
|
43
43
|
protected writeInt32(value: number): void;
|
|
44
44
|
protected readUint8(): number;
|
|
45
|
+
protected readOptionalUint8(): number | undefined;
|
|
45
46
|
protected writeUint8(value: number): void;
|
|
47
|
+
protected writeOptionalUint8(value?: number): void;
|
|
46
48
|
protected readUint16(): number;
|
|
47
49
|
protected writeUint16(value: number): void;
|
|
48
50
|
protected readUint32(): number;
|
|
@@ -60,7 +60,7 @@ export declare class GlobalMouseInfo extends EventEmitter.Host<IGlobalMouseInfoE
|
|
|
60
60
|
/**
|
|
61
61
|
* Forces a target update. Use as much as you want now ;)
|
|
62
62
|
*/
|
|
63
|
-
updateTarget(): void;
|
|
63
|
+
updateTarget(force?: boolean): void;
|
|
64
64
|
update(evt: Event & Partial<MouseEvent> & Partial<TouchEvent>): void;
|
|
65
65
|
/**
|
|
66
66
|
* Returns whether the mouse is currently within the given component, element, or selector, or its descendants.
|
|
@@ -223,7 +223,9 @@ export default class ItemComponent extends Component implements ItemSlot {
|
|
|
223
223
|
setItemMenu(initialiser?: (contextMenu: ContextMenu<ActionId>) => any): this;
|
|
224
224
|
private registeredItemHighlights;
|
|
225
225
|
registerItemHighlights(): void;
|
|
226
|
-
private
|
|
226
|
+
private static dragPreviewSource?;
|
|
227
|
+
private static dragPreview?;
|
|
228
|
+
private static getDragPreview;
|
|
227
229
|
private savedPosition?;
|
|
228
230
|
protected onMoveStart(_: any, mouse: Vector2): false | void;
|
|
229
231
|
protected onMove(_: any, offset: Vector2): void;
|
|
@@ -233,6 +235,7 @@ export default class ItemComponent extends Component implements ItemSlot {
|
|
|
233
235
|
private endDragPreview;
|
|
234
236
|
private handleDrop;
|
|
235
237
|
private getStatBarsWrapper;
|
|
238
|
+
private refreshStack;
|
|
236
239
|
private lastDecay;
|
|
237
240
|
private refreshDecayBar;
|
|
238
241
|
private lastDurability;
|
package/package.json
CHANGED