@wayward/types 2.13.3-beta.dev.20230615.1 → 2.13.3-beta.dev.20230617.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.
- package/definitions/game/game/doodad/IDoodad.d.ts +4 -1
- package/definitions/game/renderer/overlay/UniversalOverlay.d.ts +30 -0
- package/definitions/game/ui/component/Dropdown.d.ts +1 -1
- package/definitions/game/ui/component/SortRow.d.ts +1 -0
- package/definitions/game/ui/input/Bind.d.ts +4 -0
- package/definitions/game/ui/input/InputManager.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/MilestonesDialog.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/dialog/SkillsDialog.d.ts +2 -0
- package/definitions/game/utilities/random/generators/specific/RandomItem.d.ts +1 -1
- package/package.json +1 -1
|
@@ -456,7 +456,10 @@ export declare enum DoodadTypeGroup {
|
|
|
456
456
|
Last = 420
|
|
457
457
|
}
|
|
458
458
|
export declare enum DoorOrientation {
|
|
459
|
-
|
|
459
|
+
/**
|
|
460
|
+
* Horizontal (handle on right)
|
|
461
|
+
*/
|
|
462
|
+
Horizontal = 0,
|
|
460
463
|
Vertical = 1
|
|
461
464
|
}
|
|
462
465
|
export declare enum GrowingStage {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2023 Unlok
|
|
3
|
+
* https://www.unlok.ca
|
|
4
|
+
*
|
|
5
|
+
* Credits & Thanks:
|
|
6
|
+
* https://www.unlok.ca/credits-thanks/
|
|
7
|
+
*
|
|
8
|
+
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
|
+
* https://github.com/WaywardGame/types/wiki
|
|
10
|
+
*/
|
|
11
|
+
import type { IOverlayInfo } from "game/tile/ITerrain";
|
|
12
|
+
import type Tile from "game/tile/Tile";
|
|
13
|
+
import GenericOverlay from "renderer/overlay/GenericOverlay";
|
|
14
|
+
import Vector2 from "utilities/math/Vector2";
|
|
15
|
+
export default abstract class UniversalOverlay<OVERLAY extends IOverlayInfo = IOverlayInfo> extends GenericOverlay<OVERLAY> {
|
|
16
|
+
private readonly scheduledInvalidations;
|
|
17
|
+
get minVector(): Vector2;
|
|
18
|
+
get maxVector(): Vector2;
|
|
19
|
+
register(): void;
|
|
20
|
+
deregister(): void;
|
|
21
|
+
protected onReset(): void;
|
|
22
|
+
protected onPreMoveToIsland(): void;
|
|
23
|
+
protected onLoadOnIsland(): void;
|
|
24
|
+
protected onPostFieldOfView(): void;
|
|
25
|
+
protected onChangeZOrIsland(): void;
|
|
26
|
+
protected onTickEnd(): void;
|
|
27
|
+
protected invalidate(tile: Tile, invalidateRange?: number): void;
|
|
28
|
+
clear(): void;
|
|
29
|
+
refresh(): void;
|
|
30
|
+
}
|
|
@@ -57,7 +57,7 @@ export default class Dropdown<O = string | number> extends Component implements
|
|
|
57
57
|
retainLastFilter(retainLastFilter?: boolean): this;
|
|
58
58
|
open(): void;
|
|
59
59
|
close(input?: InputButton): boolean;
|
|
60
|
-
select(optionId: O | undefined): this;
|
|
60
|
+
select(optionId: O | undefined, force?: boolean): this;
|
|
61
61
|
selectDefault(): this;
|
|
62
62
|
setRefreshMethod(refresh: () => IDropdownData<O>): this;
|
|
63
63
|
refresh(): this;
|
|
@@ -42,6 +42,7 @@ export default class SortRow<S extends number> extends LabelledRow implements IR
|
|
|
42
42
|
setDisabledSorts(val: S[], refresh?: boolean): this;
|
|
43
43
|
setRefreshMethod(refresh: () => SortRowData<S>): this;
|
|
44
44
|
refresh(): this;
|
|
45
|
+
setSort(sort: S, direction: SortDirection): void;
|
|
45
46
|
toggleSortDirection(sortDirection?: SortDirection): void;
|
|
46
47
|
triggerSort(): void;
|
|
47
48
|
triggerSortAsync(): Promise<any[]>;
|
|
@@ -13,6 +13,10 @@ import Bindable from "ui/input/Bindable";
|
|
|
13
13
|
import { IInput } from "ui/input/IInput";
|
|
14
14
|
import type { GlobalInputInfo, GlobalMouseInfo, InputInfo } from "ui/input/InputManager";
|
|
15
15
|
export interface IBindHandlerApi {
|
|
16
|
+
/**
|
|
17
|
+
* You should never need this unless you expect the user to be trying to use a scroll binding for your bind handler.
|
|
18
|
+
*/
|
|
19
|
+
preventDefault?: true;
|
|
16
20
|
/**
|
|
17
21
|
* The bindable this handler is called for.
|
|
18
22
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import EventEmitter from "event/EventEmitter";
|
|
12
12
|
import Component from "ui/component/Component";
|
|
13
|
-
import
|
|
13
|
+
import Bindable from "ui/input/Bindable";
|
|
14
14
|
import { IInput, InputCatalyst, Modifier } from "ui/input/IInput";
|
|
15
15
|
import HashMap from "utilities/collection/map/HashMap";
|
|
16
16
|
import Vector2 from "utilities/math/Vector2";
|
|
@@ -16,9 +16,11 @@ import { MenuBarButtonType } from "ui/screen/screens/game/static/menubar/IMenuBa
|
|
|
16
16
|
export default class MilestonesDialog extends Dialog {
|
|
17
17
|
private readonly milestones;
|
|
18
18
|
private readonly sortRow;
|
|
19
|
+
private sortData;
|
|
19
20
|
constructor();
|
|
20
21
|
getBindable(): Bindable;
|
|
21
22
|
getIcon(): MenuBarButtonType;
|
|
23
|
+
protected onDialogLoad(): void;
|
|
22
24
|
onPlayerChangeTitle(player: Player, milestone?: Milestone): void;
|
|
23
25
|
onMilestoneUpdate(_: any, milestone: Milestone): void;
|
|
24
26
|
private sort;
|
|
@@ -15,9 +15,11 @@ export default class SkillsDialog extends Dialog {
|
|
|
15
15
|
private readonly skills;
|
|
16
16
|
private readonly inputFilter;
|
|
17
17
|
private readonly sortRow;
|
|
18
|
+
private sortData;
|
|
18
19
|
constructor();
|
|
19
20
|
getBindable(): Bindable;
|
|
20
21
|
getIcon(): MenuBarButtonType;
|
|
22
|
+
protected onDialogLoad(): void;
|
|
21
23
|
protected onDialogRemove(): void;
|
|
22
24
|
private updateSkill;
|
|
23
25
|
private sort;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import { Quality } from "game/IObject";
|
|
12
12
|
import type Island from "game/island/Island";
|
|
13
13
|
import type { IContainer, ItemType, ItemTypeGroup } from "game/item/IItem";
|
|
14
|
-
import Item from "game/item/Item";
|
|
14
|
+
import type Item from "game/item/Item";
|
|
15
15
|
import Objects from "utilities/object/Objects";
|
|
16
16
|
import type { RandomInstance } from "utilities/random/IRandom";
|
|
17
17
|
import type { RandomReference } from "utilities/random/RandomReference";
|
package/package.json
CHANGED