@wayward/types 2.12.2-beta.dev.20221111.1 → 2.12.2-beta.dev.20221112.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/item/IItem.d.ts +8 -3
- package/definitions/game/game/item/Item.d.ts +2 -2
- package/definitions/game/game/item/ItemManager.d.ts +2 -1
- package/definitions/game/game/item/ItemMapManager.d.ts +8 -1
- package/definitions/game/language/Dictionary.d.ts +54 -53
- package/definitions/game/language/DictionaryMap.d.ts +110 -107
- package/definitions/game/language/dictionary/Message.d.ts +485 -484
- package/definitions/game/language/english/item/ItemsExtra.d.ts +13 -0
- package/definitions/game/mod/ModRegistry.d.ts +39 -34
- package/definitions/game/ui/old/screens/InGameScreen.d.ts +2 -2
- package/definitions/game/utilities/enum/IEnum.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2021 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 { ItemTypeExtra } from "game/item/IItem";
|
|
12
|
+
declare const items: Descriptions<ItemTypeExtra, [string, string]>;
|
|
13
|
+
export default items;
|
|
@@ -87,40 +87,41 @@ export declare enum ModRegistrationType {
|
|
|
87
87
|
Interrupt = 14,
|
|
88
88
|
InterruptChoice = 15,
|
|
89
89
|
Item = 16,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
90
|
+
ItemExtra = 17,
|
|
91
|
+
ItemGroup = 18,
|
|
92
|
+
Language = 19,
|
|
93
|
+
LanguageExtension = 20,
|
|
94
|
+
Load = 21,
|
|
95
|
+
MagicalProperty = 22,
|
|
96
|
+
MenuBarButton = 23,
|
|
97
|
+
Message = 24,
|
|
98
|
+
MessageSource = 25,
|
|
99
|
+
MusicTrack = 26,
|
|
100
|
+
Note = 27,
|
|
101
|
+
NPC = 28,
|
|
102
|
+
OptionsSection = 29,
|
|
103
|
+
Overlay = 30,
|
|
104
|
+
Packet = 31,
|
|
105
|
+
Prompt = 32,
|
|
106
|
+
QuadrantComponent = 33,
|
|
107
|
+
Quest = 34,
|
|
108
|
+
QuestRequirement = 35,
|
|
109
|
+
Registry = 36,
|
|
110
|
+
Skill = 37,
|
|
111
|
+
SoundEffect = 38,
|
|
112
|
+
Stat = 39,
|
|
113
|
+
StatusEffect = 40,
|
|
114
|
+
Terrain = 41,
|
|
115
|
+
TerrainDecoration = 42,
|
|
116
|
+
TileEvent = 43,
|
|
117
|
+
TileLayerType = 44,
|
|
118
|
+
UsableActions = 45,
|
|
119
|
+
UsableActionType = 46,
|
|
120
|
+
UsableActionTypePlaceholder = 47,
|
|
121
|
+
WorldLayer = 48,
|
|
122
|
+
ItemTag = 49,
|
|
123
|
+
DoodadTag = 50,
|
|
124
|
+
EntityTag = 51
|
|
124
125
|
}
|
|
125
126
|
export interface ILanguageRegistration extends IBaseModRegistration {
|
|
126
127
|
type: ModRegistrationType.Language;
|
|
@@ -263,6 +264,10 @@ export interface IItemRegistration extends IBaseModRegistration {
|
|
|
263
264
|
name: string;
|
|
264
265
|
description?: IItemRegistrationDescription;
|
|
265
266
|
}
|
|
267
|
+
export interface IItemExtraRegistration extends IBaseModRegistration {
|
|
268
|
+
type: ModRegistrationType.ItemExtra;
|
|
269
|
+
name: string;
|
|
270
|
+
}
|
|
266
271
|
export interface ICreatureRegistration extends IBaseModRegistration {
|
|
267
272
|
type: ModRegistrationType.Creature;
|
|
268
273
|
name: string;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import type Doodad from "game/doodad/Doodad";
|
|
12
12
|
import { EquipType } from "game/entity/IHuman";
|
|
13
13
|
import NPC from "game/entity/npc/NPC";
|
|
14
|
-
import type { IContainer, IDismantleComponent } from "game/item/IItem";
|
|
14
|
+
import type { DisplayableItemType, IContainer, IDismantleComponent } from "game/item/IItem";
|
|
15
15
|
import { ItemType } from "game/item/IItem";
|
|
16
16
|
import Item from "game/item/Item";
|
|
17
17
|
import Message from "language/dictionary/Message";
|
|
@@ -115,7 +115,7 @@ export default class InGameScreen extends BaseScreen {
|
|
|
115
115
|
autoOpenDialog(index: string | number, element: JQuery): boolean;
|
|
116
116
|
openDialogs(): void;
|
|
117
117
|
clampDialogs(): void;
|
|
118
|
-
getItemClass(item?: Item, itemType?:
|
|
118
|
+
getItemClass(item?: Item, itemType?: DisplayableItemType): string;
|
|
119
119
|
createItemString(itemType: ItemType, item?: Item, extraClass?: string): string;
|
|
120
120
|
syncItemElements(itemIds: number | number[], forceSyncDecay?: boolean): void;
|
|
121
121
|
private readonly SYMBOL_LAST_NEARLY_DESTROYED;
|
package/package.json
CHANGED