@wayward/types 2.12.0-beta.dev.20220906.1 → 2.12.0-beta.dev.20220907.8
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/IGlobal.d.ts +4 -1
- package/definitions/game/game/entity/IHuman.d.ts +14 -0
- package/definitions/game/game/entity/action/IAction.d.ts +2 -1
- package/definitions/game/game/entity/action/usable/UsableActionType.d.ts +2 -0
- package/definitions/game/game/inspection/infoProviders/UseInfo.d.ts +2 -0
- package/definitions/game/game/item/Item.d.ts +1 -1
- package/definitions/game/game/item/ItemManager.d.ts +7 -0
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +1 -1
- package/definitions/game/language/dictionary/UiTranslation.d.ts +563 -558
- package/definitions/game/renderer/IRenderer.d.ts +36 -38
- package/definitions/game/resource/IResourceLoader.d.ts +2 -1
- package/definitions/game/resource/SpritePacker.d.ts +1 -0
- package/definitions/game/steamworks/ISteamworks.d.ts +2 -0
- package/definitions/game/steamworks/Steamworks.d.ts +1 -0
- package/definitions/game/typings/jqueryui.d.ts +1 -1
- package/definitions/game/ui/IUi.d.ts +3 -1
- package/definitions/game/ui/Ui.d.ts +1 -0
- package/definitions/game/ui/component/GroupDropdown.d.ts +1 -0
- package/definitions/game/ui/component/SortRow.d.ts +1 -0
- package/definitions/game/ui/component/Text.d.ts +2 -2
- package/definitions/game/ui/screen/screens/menu/menus/main/component/IWebsite.d.ts +5 -2
- package/definitions/game/ui/screen/screens/menu/menus/main/component/SocialRow.d.ts +2 -1
- package/definitions/game/ui/tooltip/Tooltip.d.ts +2 -1
- package/definitions/game/utilities/enum/EnumManager.d.ts +5 -0
- package/definitions/hosts/shared/globals.d.ts +4 -1
- package/definitions/test/core/application.d.ts +1 -0
- package/definitions/test/core/chromeDriver.d.ts +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import "@cplusplus/index";
|
|
12
|
+
import "@hosts/shared/globalTypes";
|
|
12
13
|
import "@wayward/goodstream/apply";
|
|
13
14
|
import type WAudio from "audio/Audio";
|
|
14
15
|
import type CommandManager from "command/CommandManager";
|
|
@@ -41,7 +42,6 @@ import "utilities/typesglobal/Iterables";
|
|
|
41
42
|
import "utilities/typesglobal/Misc";
|
|
42
43
|
import "utilities/typesglobal/Objects";
|
|
43
44
|
import "utilities/typesglobal/Types";
|
|
44
|
-
import "@hosts/shared/globalTypes";
|
|
45
45
|
declare global {
|
|
46
46
|
let absentPlayers: Player[];
|
|
47
47
|
let audio: WAudio | undefined;
|
|
@@ -69,6 +69,9 @@ declare global {
|
|
|
69
69
|
const gameVersionMinor: number;
|
|
70
70
|
const gameVersionPatch: number;
|
|
71
71
|
const gameVersionName: string;
|
|
72
|
+
const gameVersionTitleMajor: string;
|
|
73
|
+
const gameVersionTitleMinor: string;
|
|
74
|
+
const gameVersionTitle: string;
|
|
72
75
|
const isNodeJs: boolean;
|
|
73
76
|
const isWebWorker: boolean;
|
|
74
77
|
const overlayWorks: boolean | undefined;
|
|
@@ -420,9 +420,23 @@ export interface IVoyageInfo {
|
|
|
420
420
|
wantedItems?: ItemType[];
|
|
421
421
|
}
|
|
422
422
|
export declare enum MovingClientSide {
|
|
423
|
+
/**
|
|
424
|
+
* NoInput = Idle
|
|
425
|
+
*/
|
|
423
426
|
NoInput = 0,
|
|
427
|
+
/**
|
|
428
|
+
* Is actively moving
|
|
429
|
+
*/
|
|
424
430
|
Moving = 1,
|
|
431
|
+
/**
|
|
432
|
+
* Just completed their movement.
|
|
433
|
+
* They might be about to move again.
|
|
434
|
+
*/
|
|
425
435
|
Moved = 2,
|
|
436
|
+
/**
|
|
437
|
+
* The game registered the end of the movement.
|
|
438
|
+
* It's about to check if it will move again or finish (state change into Moving or NoInput)
|
|
439
|
+
*/
|
|
426
440
|
PreNoInput = 3
|
|
427
441
|
}
|
|
428
442
|
/**
|
|
@@ -30,6 +30,7 @@ import type { IPromptDescriptionBase, PromptDescriptionArgs } from "game/meta/pr
|
|
|
30
30
|
import type { Milestone } from "game/milestones/IMilestone";
|
|
31
31
|
import type { ITile } from "game/tile/ITerrain";
|
|
32
32
|
import type TileEvent from "game/tile/TileEvent";
|
|
33
|
+
import type { IModdable } from "mod/ModRegistry";
|
|
33
34
|
import type { IRGB } from "utilities/Color";
|
|
34
35
|
import type { Direction } from "utilities/math/Direction";
|
|
35
36
|
import type { IVector2, IVector3 } from "utilities/math/IVector";
|
|
@@ -188,7 +189,7 @@ export interface IActionNotUsable extends Partial<IPackedMessage> {
|
|
|
188
189
|
source?: never;
|
|
189
190
|
}
|
|
190
191
|
export declare type AnyActionDescription = IActionDescription<Array<ActionArgument | ActionArgument[]>, Entity, any, IActionUsable, any[]>;
|
|
191
|
-
export interface IActionDescription<A extends Array<ActionArgument | ActionArgument[]> = Array<ActionArgument | ActionArgument[]>, E extends Entity = Entity, R = void, CU extends IActionUsable = IActionUsable, AV extends any[] = ActionArgumentTupleTypes<A>> {
|
|
192
|
+
export interface IActionDescription<A extends Array<ActionArgument | ActionArgument[]> = Array<ActionArgument | ActionArgument[]>, E extends Entity = Entity, R = void, CU extends IActionUsable = IActionUsable, AV extends any[] = ActionArgumentTupleTypes<A>> extends IModdable {
|
|
192
193
|
type?: number;
|
|
193
194
|
argumentTypes: A;
|
|
194
195
|
usability: {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
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
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
+
import type { IModdable } from "mod/ModRegistry";
|
|
11
12
|
export declare enum ActionTypeStarts {
|
|
12
13
|
ActionType = 0,
|
|
13
14
|
ModActionType = 10000,
|
|
@@ -73,3 +74,4 @@ export declare enum UsableActionTypePlaceholder {
|
|
|
73
74
|
Paddle = 200003,
|
|
74
75
|
Operate = 200004
|
|
75
76
|
}
|
|
77
|
+
export declare const usableActionDescriptions: PartialRecord<UsableActionType | UsableActionTypePlaceholder, IModdable>;
|
|
@@ -14,6 +14,7 @@ import { InfoDisplayLevel } from "game/inspection/IInfoProvider";
|
|
|
14
14
|
import type { InfoProvider } from "game/inspection/InfoProvider";
|
|
15
15
|
import type { InfoProviderContext } from "game/inspection/InfoProviderContext";
|
|
16
16
|
import type { Quality } from "game/IObject";
|
|
17
|
+
import type Island from "game/island/Island";
|
|
17
18
|
import type Translation from "language/Translation";
|
|
18
19
|
import type { TranslationGenerator } from "ui/component/IComponent";
|
|
19
20
|
export interface IDescribed {
|
|
@@ -21,6 +22,7 @@ export interface IDescribed {
|
|
|
21
22
|
type: number;
|
|
22
23
|
referenceId?: number;
|
|
23
24
|
quality?: Quality;
|
|
25
|
+
island: Island;
|
|
24
26
|
description(): any;
|
|
25
27
|
}
|
|
26
28
|
export declare type DescribedDescription<T extends IDescribed> = Exclude<ReturnType<T["description"]>, undefined>;
|
|
@@ -276,7 +276,7 @@ export default class Item extends EventEmitter.Host<IItemEvents> implements IRef
|
|
|
276
276
|
* @param action The ActionType you are trying to get the level for.
|
|
277
277
|
* @returns A number (possibly 0 if no quality or action level).
|
|
278
278
|
*/
|
|
279
|
-
getItemUseBonus(action
|
|
279
|
+
getItemUseBonus(action: ActionType): number;
|
|
280
280
|
getBestRangedWeapon(human: Human): Item | undefined;
|
|
281
281
|
/**
|
|
282
282
|
* Extinguishes to item if it is lit.
|
|
@@ -215,12 +215,19 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
|
|
|
215
215
|
countItemsInContainerByGroup(containers: IContainer | IContainer[], itemTypeGroupSearch: ItemTypeGroup, ignoreItem?: Item): number;
|
|
216
216
|
/**
|
|
217
217
|
* Get the best items sorted by how good they are
|
|
218
|
+
* Usability/custom (ie the sorting for melee/start fire) > Action tier (+quality if there's an action tier on both items) > quality > durability
|
|
218
219
|
*/
|
|
219
220
|
getBestSafeItems(human: Human, container: IContainer, options?: Partial<IGetBestItemsOptions>): Item[];
|
|
220
221
|
/**
|
|
221
222
|
* Get the best item
|
|
222
223
|
*/
|
|
223
224
|
getBestSafeItem(human: Human, container: IContainer, options?: Partial<IGetBestItemsOptions>): Item | undefined;
|
|
225
|
+
/**
|
|
226
|
+
* Gets the item's quality and action level (how good it is at doing the action).
|
|
227
|
+
* @param action The ActionType you are trying to get the level for.
|
|
228
|
+
* @returns A number (possibly 0 if no quality or action level).
|
|
229
|
+
*/
|
|
230
|
+
getItemUseBonus(itemType: ItemType, action: ActionType, quality: Quality | undefined): number;
|
|
224
231
|
getItemInContainer(container: IContainer, itemTypeSearch: ItemType, options?: Partial<IGetItemOptions>): Item | undefined;
|
|
225
232
|
getItemForHuman(human: Human, search: ItemType | ItemTypeGroup, options?: Partial<IGetItemOptions>): Item | undefined;
|
|
226
233
|
getItemInContainerByGroup(container: IContainer, itemTypeGroupSearch: ItemTypeGroup, options?: Partial<IGetItemOptions>): Item | undefined;
|
|
@@ -20,7 +20,7 @@ declare class MilestoneModifiersManager extends GameplayModifiersManager<Milesto
|
|
|
20
20
|
isGlobal(milestone: Milestone): boolean;
|
|
21
21
|
isNotGlobal(milestone: Milestone): boolean;
|
|
22
22
|
getGroup(milestone: Milestone): import("game/options/modifiers/milestone/MilestoneModifier").MilestoneModifierGroup | undefined;
|
|
23
|
-
sort(a: Milestone, b: Milestone):
|
|
23
|
+
sort(a: Milestone, b: Milestone): 1 | 0 | -1;
|
|
24
24
|
private areOptionsGlobal;
|
|
25
25
|
}
|
|
26
26
|
declare const _default: MilestoneModifiersManager;
|