@wayward/types 2.11.0-beta.dev.20211205.2 → 2.11.0-beta.dev.20211208.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/game/game/entity/IHuman.d.ts +1 -0
- package/definitions/game/game/entity/action/ActionExecutor.d.ts +2 -1
- package/definitions/game/game/entity/action/IAction.d.ts +1 -1
- package/definitions/game/game/entity/player/Player.d.ts +1 -0
- package/definitions/game/game/inspection/InfoProvider.d.ts +7 -1
- package/definitions/game/game/item/IItem.d.ts +0 -1
- package/definitions/game/game/item/IItemManager.d.ts +15 -0
- package/definitions/game/game/item/ItemManager.d.ts +2 -2
- package/definitions/game/game/item/ItemReferenceManager.d.ts +2 -1
- package/definitions/game/language/dictionary/UiTranslation.d.ts +554 -553
- package/definitions/game/multiplayer/packets/server/UiDataUpdatePacket.d.ts +2 -3
- package/definitions/game/renderer/Renderer.d.ts +9 -8
- package/definitions/game/save/clientStore/clientData/UiData.d.ts +1 -1
- package/definitions/game/ui/component/Component.d.ts +1 -1
- package/definitions/game/ui/input/Bindable.d.ts +83 -81
- package/definitions/game/ui/old/OldUi.d.ts +1 -1
- package/definitions/game/ui/old/screens/InGameScreen.d.ts +3 -1
- package/definitions/game/ui/screen/ScreenManager.d.ts +1 -0
- package/definitions/game/ui/screen/screens/GameScreen.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/component/InspectionsList.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/static/Messages.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/static/menubar/IMenuBarButton.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/MenuManager.d.ts +4 -3
- package/definitions/game/ui/screen/screens/menu/component/IMenu.d.ts +0 -1
- package/definitions/game/ui/screen/screens/menu/component/Menu.d.ts +7 -0
- package/definitions/game/ui/screen/screens/menu/menus/LoadGameMenu.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/MainMenu.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/main/ChangelogMenu.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/main/NewsMenu.d.ts +1 -1
- package/definitions/game/ui/tooltip/Tooltip.d.ts +1 -1
- package/definitions/game/utilities/Decorators.d.ts +1 -0
- package/package.json +1 -1
|
@@ -113,6 +113,7 @@ export declare enum EquipType {
|
|
|
113
113
|
LeftHand = 10,
|
|
114
114
|
RightHand = 11
|
|
115
115
|
}
|
|
116
|
+
export declare const equipmentRenderOrder: EquipType[];
|
|
116
117
|
export declare type InsulationWeight = number | [number, "onlyWhenEquipped"];
|
|
117
118
|
export declare const equipSlotInsulationWeights: Record<TempType, Record<EquipType, InsulationWeight>>;
|
|
118
119
|
export interface IExcludedWhenLowering {
|
|
@@ -50,6 +50,7 @@ export default class ActionExecutor<A extends Array<ActionArgument | ActionArgum
|
|
|
50
50
|
private shouldSkipConfirmation;
|
|
51
51
|
private readonly privateStore;
|
|
52
52
|
private updateTablesAndWeight;
|
|
53
|
+
private deferUpdateTables;
|
|
53
54
|
private staminaReduction?;
|
|
54
55
|
private reputationChange;
|
|
55
56
|
private milestone?;
|
|
@@ -70,7 +71,7 @@ export default class ActionExecutor<A extends Array<ActionArgument | ActionArgum
|
|
|
70
71
|
setPassTurn(turnType?: TurnType): this;
|
|
71
72
|
setUpdateView(updateFov?: boolean): this;
|
|
72
73
|
setUpdateRender(): this;
|
|
73
|
-
setUpdateTablesAndWeight(): this;
|
|
74
|
+
setUpdateTablesAndWeight(defer?: boolean): this;
|
|
74
75
|
setStaminaReduction(reduction?: SkillType, actionTier?: number): this;
|
|
75
76
|
setReputationChange(amount: number): this;
|
|
76
77
|
addSkillGains(...skills: Array<[SkillType, number?, number?, true?]>): this;
|
|
@@ -188,7 +188,7 @@ export interface IActionApi<E extends Entity = Entity> {
|
|
|
188
188
|
setPassTurn(turnType?: TurnType): this;
|
|
189
189
|
setUpdateView(updateFov?: boolean): this;
|
|
190
190
|
setUpdateRender(): this;
|
|
191
|
-
setUpdateTablesAndWeight(): this;
|
|
191
|
+
setUpdateTablesAndWeight(defer?: boolean): this;
|
|
192
192
|
setStaminaReduction(skill?: SkillType, actionTier?: number): this;
|
|
193
193
|
addSkillGains(...skills: Array<[skill: SkillType, multiplier?: number, actionTier?: number, bypass?: true]>): this;
|
|
194
194
|
addSkillGains(skill: SkillType, multiplier?: number, actionTier?: number, bypass?: true): this;
|
|
@@ -171,6 +171,7 @@ export default class Player extends Human implements IUnserializedCallback {
|
|
|
171
171
|
*/
|
|
172
172
|
setZ(z: number, effects?: boolean): void;
|
|
173
173
|
isGhost(): boolean;
|
|
174
|
+
isDead(): boolean;
|
|
174
175
|
/**
|
|
175
176
|
* Returns true if this is the special dedicated server player
|
|
176
177
|
*/
|
|
@@ -21,8 +21,14 @@ export interface IInfoProviderEvents {
|
|
|
21
21
|
* Should be emitted when the info provider is starting to initialize its component.
|
|
22
22
|
*/
|
|
23
23
|
init(component: Component): any;
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Emitted when the info provider finishes initializing
|
|
26
|
+
*/
|
|
25
27
|
initDone(): any;
|
|
28
|
+
/**
|
|
29
|
+
* Should be emitted when the info provider skipped initializing
|
|
30
|
+
*/
|
|
31
|
+
initSkip(): any;
|
|
26
32
|
/**
|
|
27
33
|
* Should be emitted when the info provider has detected an update and its contents will need to be refreshed.
|
|
28
34
|
*/
|
|
@@ -54,3 +54,18 @@ export interface IPlaceOnTileOptions {
|
|
|
54
54
|
skipMessage?: boolean;
|
|
55
55
|
skipTileUpdate?: boolean;
|
|
56
56
|
}
|
|
57
|
+
export declare enum ContainerReferenceSource {
|
|
58
|
+
ContainerWeightReduction = 0,
|
|
59
|
+
GetContainerId = 1,
|
|
60
|
+
GetPoint = 2,
|
|
61
|
+
GetWeightCapacity = 3,
|
|
62
|
+
HashContainer = 4,
|
|
63
|
+
MoveItem = 5,
|
|
64
|
+
OpenContainer = 6,
|
|
65
|
+
OriginalContainerId = 7,
|
|
66
|
+
OriginalContainerId2 = 8,
|
|
67
|
+
ResolveContainer = 9,
|
|
68
|
+
ScheduleContainerInvalidation = 10,
|
|
69
|
+
Serializer = 11,
|
|
70
|
+
WriteContainer = 12
|
|
71
|
+
}
|
|
@@ -18,7 +18,7 @@ import { Quality } from "game/IObject";
|
|
|
18
18
|
import type { ContainerReference, IContainable, IContainer, IItemDescription, IItemWeightComponent } from "game/item/IItem";
|
|
19
19
|
import { ItemType, ItemTypeGroup } from "game/item/IItem";
|
|
20
20
|
import type { IAddToContainerOptions, IRequirementInfo } from "game/item/IItemManager";
|
|
21
|
-
import { CraftStatus, WeightType } from "game/item/IItemManager";
|
|
21
|
+
import { CraftStatus, WeightType, ContainerReferenceSource } from "game/item/IItemManager";
|
|
22
22
|
import Item from "game/item/Item";
|
|
23
23
|
import type ItemRecipeRequirementChecker from "game/item/ItemRecipeRequirementChecker";
|
|
24
24
|
import { ObjectManager } from "game/ObjectManager";
|
|
@@ -111,7 +111,7 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
|
|
|
111
111
|
load(): void;
|
|
112
112
|
getPoint(itemOrContainer?: Item | IContainer): Vector3 | undefined;
|
|
113
113
|
resolveContainer(container?: IContainer): Doodad | Item | Player | NPC | IContainer | ITile | undefined;
|
|
114
|
-
getContainerReference(containable: IContainable | undefined,
|
|
114
|
+
getContainerReference(containable: IContainable | undefined, source: ContainerReferenceSource | undefined): ContainerReference;
|
|
115
115
|
derefenceContainerReference(containerReference: ContainerReference, showWarnings?: boolean): IContainable | undefined;
|
|
116
116
|
hashContainer(containable: IContainable): string;
|
|
117
117
|
hashContainerReference(containerReference: ContainerReference): string;
|
|
@@ -10,11 +10,12 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type Island from "game/island/Island";
|
|
12
12
|
import type { ContainerReference, IContainable } from "game/item/IItem";
|
|
13
|
+
import { ContainerReferenceSource } from "game/item/IItemManager";
|
|
13
14
|
declare module ItemReferenceManager {
|
|
14
15
|
/**
|
|
15
16
|
* Don't use this
|
|
16
17
|
*/
|
|
17
|
-
function getContainerReferenceInIsland(island: Island, containable: IContainable | undefined,
|
|
18
|
+
function getContainerReferenceInIsland(island: Island, containable: IContainable | undefined, source?: ContainerReferenceSource): ContainerReference;
|
|
18
19
|
function derefenceContainerReference(containerRef: ContainerReference, island?: Island, showWarnings?: boolean): object | undefined;
|
|
19
20
|
}
|
|
20
21
|
export default ItemReferenceManager;
|