@wayward/types 2.11.0-beta.dev.20211209.3 → 2.11.0-beta.dev.20211211.2
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/cplusplus/index.d.ts +12 -1
- package/definitions/game/game/doodad/IDoodad.d.ts +4 -3
- package/definitions/game/game/entity/action/ActionExecutor.d.ts +3 -2
- package/definitions/game/game/entity/action/IAction.d.ts +2 -1
- package/definitions/game/game/entity/flowfield/FlowField.d.ts +6 -5
- package/definitions/game/game/entity/player/Player.d.ts +1 -0
- package/definitions/game/game/item/IItem.d.ts +8 -3
- package/definitions/game/game/item/IItemManager.d.ts +1 -0
- package/definitions/game/language/dictionary/Message.d.ts +459 -459
- package/definitions/game/language/dictionary/UiTranslation.d.ts +764 -763
- package/definitions/game/multiplayer/IMultiplayer.d.ts +7 -0
- package/definitions/game/steamworks/ISteamworks.d.ts +2 -1
- package/definitions/game/ui/component/ContextMenu.d.ts +1 -1
- package/definitions/game/ui/input/Bindable.d.ts +7 -4
- package/definitions/game/ui/input/InputManager.d.ts +1 -1
- package/definitions/game/ui/old/OldUi.d.ts +1 -1
- package/definitions/game/ui/old/screens/InGameScreen.d.ts +2 -3
- package/definitions/game/ui/screen/screens/menu/component/Menu.d.ts +2 -0
- package/definitions/test/core/applicationManager.d.ts +1 -1
- package/package.json +1 -1
|
@@ -27,6 +27,13 @@ export interface IMultiplayerEvents {
|
|
|
27
27
|
stateChange(): any;
|
|
28
28
|
checkConnection(webRtcWorks: boolean, webSocketWorks: boolean): any;
|
|
29
29
|
}
|
|
30
|
+
export declare enum MultiplayerSyncCheckLevel {
|
|
31
|
+
None = 0,
|
|
32
|
+
Normal = 1,
|
|
33
|
+
Extended = 2,
|
|
34
|
+
Verbose = 3,
|
|
35
|
+
All = 4
|
|
36
|
+
}
|
|
30
37
|
export declare enum MultiplayerSyncCheck {
|
|
31
38
|
Action = 0,
|
|
32
39
|
ActionAttack = 1,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { ISteamNetworkRelayStatus, SteamNetworkingConnectionState } from "@hosts/shared/interfaces";
|
|
12
12
|
import type { IPlayOptions } from "game/IGame";
|
|
13
|
-
import type { ServerInfo } from "multiplayer/IMultiplayer";
|
|
13
|
+
import type { MultiplayerSyncCheckLevel, ServerInfo } from "multiplayer/IMultiplayer";
|
|
14
14
|
export interface ISteamworksEvents {
|
|
15
15
|
overlayShown(): any;
|
|
16
16
|
overlayHidden(): any;
|
|
@@ -39,4 +39,5 @@ export interface IDedicatedServerInfo {
|
|
|
39
39
|
sshUsername?: string;
|
|
40
40
|
sshPassword?: string;
|
|
41
41
|
devMode: boolean;
|
|
42
|
+
syncChecks: MultiplayerSyncCheckLevel;
|
|
42
43
|
}
|
|
@@ -41,7 +41,7 @@ declare class ContextMenu<O extends number | string | symbol = number | string |
|
|
|
41
41
|
disableOptions(...options: ArrayOfIterablesOr<O>): this;
|
|
42
42
|
removeOptions(...options: ArrayOfIterablesOr<O>): this;
|
|
43
43
|
setPosition(): this;
|
|
44
|
-
setPosition(x: number, y: number, right?: true): this;
|
|
44
|
+
setPosition(x: number, y: number, right?: true, mousePaddingLeft?: false): this;
|
|
45
45
|
hideAndRemove(): Promise<void>;
|
|
46
46
|
private getDescription;
|
|
47
47
|
}
|
|
@@ -140,8 +140,11 @@ declare enum Bindable {
|
|
|
140
140
|
export default Bindable;
|
|
141
141
|
export declare enum BindableType {
|
|
142
142
|
Game = 0,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
GameItem = 1,
|
|
144
|
+
GameQuickSlot = 2,
|
|
145
|
+
GameContextMenu = 3,
|
|
146
|
+
Dialog = 4,
|
|
147
|
+
Menu = 5,
|
|
148
|
+
Developer = 6,
|
|
149
|
+
Mod = 7
|
|
147
150
|
}
|
|
@@ -57,7 +57,7 @@ export declare class GlobalMouseInfo extends EventEmitter.Host<IGlobalMouseInfoE
|
|
|
57
57
|
*/
|
|
58
58
|
get targetElement(): HTMLElement | undefined;
|
|
59
59
|
/**
|
|
60
|
-
* Forces a target update.
|
|
60
|
+
* Forces a target update. Use as much as you want now ;)
|
|
61
61
|
*/
|
|
62
62
|
updateTarget(): void;
|
|
63
63
|
update(evt: Event & Partial<MouseEvent> & Partial<TouchEvent>): void;
|
|
@@ -44,7 +44,7 @@ export default class OldUi {
|
|
|
44
44
|
getInventoryItemOrder(): any[];
|
|
45
45
|
updateItem(item: Item, updateChildren?: boolean): void;
|
|
46
46
|
syncDecayBar(item: Item, syncDamage?: boolean): void;
|
|
47
|
-
syncItemElements(
|
|
47
|
+
syncItemElements(itemIds: number | number[], forceSyncDecay?: boolean): void;
|
|
48
48
|
hideContextMenu(): void;
|
|
49
49
|
hideActionsMenu(): void;
|
|
50
50
|
setEquipSlot(equip: EquipType, itemId: number, internal?: boolean): void;
|
|
@@ -129,11 +129,10 @@ export default class InGameScreen extends BaseScreen {
|
|
|
129
129
|
clampDialogs(): void;
|
|
130
130
|
getItemClass(item?: Item, itemType?: ItemType): string;
|
|
131
131
|
createItemString(itemType: ItemType, item?: Item, extraClass?: string): string;
|
|
132
|
-
syncItemElements(
|
|
132
|
+
syncItemElements(itemIds: number | number[], forceSyncDecay?: boolean): void;
|
|
133
133
|
private readonly SYMBOL_ITEM_ELEMENTS;
|
|
134
134
|
private readonly SYMBOL_LAST_DECAY;
|
|
135
|
-
syncDecayBar(item: Item,
|
|
136
|
-
syncDamagedDecayed(item: Item, element: JQuery): void;
|
|
135
|
+
syncDecayBar(item: Item, force?: boolean): void;
|
|
137
136
|
addItemToContainer(item: Item, container: IContainer, _internal?: boolean, isAddingMultipleItems?: boolean, updateTables?: boolean): void;
|
|
138
137
|
insertItemStringToContainer(itemElement: string | JQuery, containerElement: JQuery): void;
|
|
139
138
|
onAddItemsToContainer(containerElement: JQuery, containerDialogElement: JQuery | undefined, isInventoryContainer: boolean, updateTables?: boolean): void;
|
|
@@ -41,6 +41,7 @@ export default class Menu extends Component {
|
|
|
41
41
|
private willShow;
|
|
42
42
|
showMenu(): Promise<void> | void;
|
|
43
43
|
hide(): this;
|
|
44
|
+
setSectionsForcedOpen(forcedOpen?: boolean): this;
|
|
44
45
|
scrollToTop(): void;
|
|
45
46
|
scrollToTabSection(tabId: string | number): this;
|
|
46
47
|
clearTabs(): void;
|
|
@@ -81,6 +82,7 @@ export declare class MenuSection extends Component {
|
|
|
81
82
|
setDescription(initializer: (description: Paragraph) => Paragraph): this;
|
|
82
83
|
addContent(...content: ArrayOfIterablesOr<Component | undefined>): this;
|
|
83
84
|
dumpContent(): this;
|
|
85
|
+
setToggle(): this;
|
|
84
86
|
}
|
|
85
87
|
export declare class BackButton extends Button {
|
|
86
88
|
constructor();
|
|
@@ -68,7 +68,7 @@ export declare class Apps {
|
|
|
68
68
|
returnToTitleScreen(): Promise<void>;
|
|
69
69
|
waitUntilLoadingIsFinished(): Promise<void>;
|
|
70
70
|
randomInput(count: number): Promise<void>;
|
|
71
|
-
moveToTowardsIsland(app: Application, direction: Direction.Cardinal): Promise<void>;
|
|
71
|
+
moveToTowardsIsland(app: Application, direction: Direction.Cardinal, recoverStats?: boolean): Promise<void>;
|
|
72
72
|
moveAndVerifyTicks(app: Application, direction: Direction.Cardinal): Promise<void>;
|
|
73
73
|
waitForClientConsistency(): Promise<void>;
|
|
74
74
|
sailToCivilization(winnerApp: Application): Promise<void>;
|
package/package.json
CHANGED