@wayward/types 2.12.2-beta.dev.20221219.1 → 2.12.3-beta.dev.20221229.3

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.
@@ -37,6 +37,7 @@ import type Multiplayer from "multiplayer/Multiplayer";
37
37
  import type WorldRenderer from "renderer/world/WorldRenderer";
38
38
  import type SaveManager from "save/SaveManager";
39
39
  import type Steamworks from "steamworks/Steamworks";
40
+ import type ScreenManager from "ui/screen/ScreenManager";
40
41
  import type ActionBar from "ui/screen/screens/game/static/ActionBar";
41
42
  import type MovementHandler from "ui/screen/screens/game/util/movement/MovementHandler";
42
43
  export declare enum EventBus {
@@ -67,13 +68,14 @@ export declare enum EventBus {
67
68
  Players = 24,
68
69
  Prompt = 25,
69
70
  SaveManager = 26,
70
- Steamworks = 27,
71
- TileEventManager = 28,
72
- TileEvents = 29,
73
- Ui = 30,
74
- UiActionBar = 31,
75
- UiMovementHandler = 32,
76
- WorldRenderer = 33
71
+ ScreenManager = 27,
72
+ Steamworks = 28,
73
+ TileEventManager = 29,
74
+ TileEvents = 30,
75
+ Ui = 31,
76
+ UiActionBar = 32,
77
+ UiMovementHandler = 33,
78
+ WorldRenderer = 34
77
79
  }
78
80
  declare const eventBuses: {
79
81
  [EventBus.Actions](): typeof ActionExecutor;
@@ -103,6 +105,7 @@ declare const eventBuses: {
103
105
  [EventBus.Players](): typeof Player;
104
106
  [EventBus.Prompt](): typeof Prompts.Events;
105
107
  [EventBus.SaveManager](): typeof SaveManager;
108
+ [EventBus.ScreenManager](): typeof ScreenManager;
106
109
  [EventBus.Steamworks](): typeof Steamworks;
107
110
  [EventBus.TileEventManager](): typeof TileEventManager;
108
111
  [EventBus.TileEvents](): typeof TileEvent;
@@ -19,7 +19,7 @@ export default class ItemDetailsInfoProvider extends InfoProvider {
19
19
  private readonly description;
20
20
  constructor(item: Item | ItemType);
21
21
  getClass(): string[];
22
- get(): (0 | LabelledValue | import("game/inspection/InfoProvider").SimpleInfoProvider | ItemWorthInfoProvider)[];
22
+ get(): (0 | import("game/inspection/InfoProvider").SimpleInfoProvider | LabelledValue | ItemWorthInfoProvider)[];
23
23
  private getInsulation;
24
24
  private getPreservation;
25
25
  private getGroupings;
@@ -15,7 +15,7 @@ export default class AttackInfo extends InfoProvider {
15
15
  private readonly human?;
16
16
  constructor(human?: Human | undefined);
17
17
  getClass(): string[];
18
- get(): (LabelledValue | import("game/inspection/InfoProvider").SimpleInfoProvider)[];
18
+ get(): (import("game/inspection/InfoProvider").SimpleInfoProvider | LabelledValue)[];
19
19
  private getTactics;
20
20
  private getMainHand;
21
21
  private getOffHand;
@@ -19,7 +19,7 @@ export default class CorpseInspection extends Inspection<Corpse> {
19
19
  static getFromTile(position: IVector3): CorpseInspection[];
20
20
  static handles(type: InspectType, corpse: unknown): boolean;
21
21
  constructor(corpse: Corpse);
22
- get(context: InfoProviderContext): (0 | LabelledValue | import("game/inspection/InfoProvider").SimpleInfoProvider)[];
22
+ get(context: InfoProviderContext): (0 | import("game/inspection/InfoProvider").SimpleInfoProvider | LabelledValue)[];
23
23
  private getDecay;
24
24
  private decay;
25
25
  private shouldRefreshDecay;
@@ -25,7 +25,7 @@ import ReferenceTooltipHandler from "ui/screen/screens/game/ReferenceTooltipHand
25
25
  import type Tooltip from "ui/tooltip/Tooltip";
26
26
  export default class ReferenceManager {
27
27
  static isEnumReference(type: ReferenceType): type is EnumReferenceTypes;
28
- static getList(type: ReferenceType, gameIsland?: Island): import("../entity/creature/corpse/CorpseManager").default | import("../entity/creature/CreatureManager").default | import("../doodad/DoodadManager").default | import("../item/ItemManager").default | import("../entity/npc/NPCManager").default | import("../tile/TileEventManager").default | readonly Milestone[] | (Player | undefined)[] | readonly ItemType[] | import("game/entity/IHuman").EquipType[] | readonly SkillType[] | readonly Stat[] | IterableIterator<Island> | (string | ActionType)[];
28
+ static getList(type: ReferenceType, gameIsland?: Island): import("../entity/creature/corpse/CorpseManager").default | import("../entity/creature/CreatureManager").default | import("../doodad/DoodadManager").default | import("../item/ItemManager").default | import("../entity/npc/NPCManager").default | import("../tile/TileEventManager").default | readonly Milestone[] | import("game/entity/IHuman").EquipType[] | (Player | undefined)[] | readonly SkillType[] | readonly ItemType[] | readonly Stat[] | IterableIterator<Island> | (string | ActionType)[];
29
29
  static get(thing: Referenceable): Reference | undefined;
30
30
  static getReferenceType(thing: Value<IReferenceTypeMap>): ReferenceType;
31
31
  private referenceCursor;
@@ -10,104 +10,105 @@
10
10
  */
11
11
  declare enum Dictionary {
12
12
  Action = 0,
13
- AutoSave = 1,
14
- BadTemperature = 2,
15
- Bindable = 3,
16
- BindableType = 4,
17
- Biome = 5,
18
- BleedLevel = 6,
19
- Book = 7,
20
- Challenge = 8,
21
- ChangelogChangeType = 9,
22
- CharacterSort = 10,
23
- Command = 11,
24
- Corpse = 12,
25
- CraftEfficacy = 13,
26
- Creature = 14,
27
- DamageType = 15,
28
- Dialog = 16,
29
- Direction = 17,
30
- DisplayLevel = 18,
31
- Doodad = 19,
32
- DoodadGroup = 20,
33
- DrawnMapTheme = 21,
34
- DurabilityLevel = 22,
35
- EquipEffect = 23,
36
- EquipSlot = 24,
37
- ExhaustionLevel = 25,
38
- FireStage = 26,
39
- FontStyle = 27,
40
- GameEndMessage = 28,
41
- GameMode = 29,
42
- Growth = 30,
43
- GrowthFungus = 31,
44
- HelpArticle = 32,
45
- HighscoreSort = 33,
46
- HumanName = 34,
47
- Input = 35,
48
- InspectType = 36,
49
- InterruptChoice = 37,
50
- InventorySort = 38,
51
- IslandModifier = 39,
52
- IslandName = 40,
53
- IslandNameBiomeDescriptor = 41,
54
- IslandNameBiomeNoun = 42,
55
- IslandNameModifierDescriptor = 43,
56
- IslandNameOverrunWithCreatureDescriptor = 44,
57
- Item = 45,
58
- ItemExtra = 46,
59
- ItemGroup = 47,
60
- JoinServerRetryReason = 48,
61
- Level = 49,
62
- Loading = 50,
63
- Macro = 51,
64
- MagicalPropertyType = 52,
65
- MapQuality = 53,
66
- MenuBarButton = 54,
67
- Message = 55,
68
- MessagesDefaultFilter = 56,
69
- MessagesTimestampMode = 57,
70
- Milestone = 58,
71
- MilestoneModifierGroup = 59,
72
- Misc = 60,
73
- ModLoadError = 61,
74
- ModLoadFailureReason = 62,
75
- ModProvide = 63,
76
- ModSort = 64,
77
- ModType = 65,
78
- MultiplayerCompatibility = 66,
79
- MultiplayerDisconnectReason = 67,
80
- MusicPlaylist = 68,
81
- Note = 69,
82
- Npc = 70,
83
- Number = 71,
84
- PartOfDay = 72,
85
- Prompt = 73,
86
- QuadrantComponent = 74,
87
- QuadrantComponentContextMenuAction = 75,
88
- Quality = 76,
89
- Quest = 77,
90
- QuestRequirement = 78,
91
- RecipeLevel = 79,
92
- Riddle = 80,
93
- SaveImportErrorReason = 81,
94
- SaveSlotSort = 82,
95
- Skill = 83,
96
- Source = 84,
97
- Stat = 85,
98
- StatusEffect = 86,
99
- TeamMemberResponsibility = 87,
100
- TemperatureType = 88,
101
- Terrain = 89,
102
- TileEvent = 90,
103
- TooltipVisibilityOption = 91,
104
- Ui = 92,
105
- UiQuadrant = 93,
106
- UnableToJoinReason = 94,
107
- UnlockedRecipesStrategy = 95,
108
- UsableActionType = 96,
109
- Website = 97,
110
- WeightStatus = 98,
111
- WorldLayer = 99
13
+ ActionSort = 1,
14
+ AutoSave = 2,
15
+ BadTemperature = 3,
16
+ Bindable = 4,
17
+ BindableType = 5,
18
+ Biome = 6,
19
+ BleedLevel = 7,
20
+ Book = 8,
21
+ Challenge = 9,
22
+ ChangelogChangeType = 10,
23
+ CharacterSort = 11,
24
+ Command = 12,
25
+ Corpse = 13,
26
+ CraftEfficacy = 14,
27
+ Creature = 15,
28
+ DamageType = 16,
29
+ Dialog = 17,
30
+ Direction = 18,
31
+ DisplayLevel = 19,
32
+ Doodad = 20,
33
+ DoodadGroup = 21,
34
+ DrawnMapTheme = 22,
35
+ DurabilityLevel = 23,
36
+ EquipEffect = 24,
37
+ EquipSlot = 25,
38
+ ExhaustionLevel = 26,
39
+ FireStage = 27,
40
+ FontStyle = 28,
41
+ GameEndMessage = 29,
42
+ GameMode = 30,
43
+ Growth = 31,
44
+ GrowthFungus = 32,
45
+ HelpArticle = 33,
46
+ HighscoreSort = 34,
47
+ HumanName = 35,
48
+ Input = 36,
49
+ InspectType = 37,
50
+ InterruptChoice = 38,
51
+ InventorySort = 39,
52
+ IslandModifier = 40,
53
+ IslandName = 41,
54
+ IslandNameBiomeDescriptor = 42,
55
+ IslandNameBiomeNoun = 43,
56
+ IslandNameModifierDescriptor = 44,
57
+ IslandNameOverrunWithCreatureDescriptor = 45,
58
+ Item = 46,
59
+ ItemExtra = 47,
60
+ ItemGroup = 48,
61
+ JoinServerRetryReason = 49,
62
+ Level = 50,
63
+ Loading = 51,
64
+ Macro = 52,
65
+ MagicalPropertyType = 53,
66
+ MapQuality = 54,
67
+ MenuBarButton = 55,
68
+ Message = 56,
69
+ MessagesDefaultFilter = 57,
70
+ MessagesTimestampMode = 58,
71
+ Milestone = 59,
72
+ MilestoneModifierGroup = 60,
73
+ Misc = 61,
74
+ ModLoadError = 62,
75
+ ModLoadFailureReason = 63,
76
+ ModProvide = 64,
77
+ ModSort = 65,
78
+ ModType = 66,
79
+ MultiplayerCompatibility = 67,
80
+ MultiplayerDisconnectReason = 68,
81
+ MusicPlaylist = 69,
82
+ Note = 70,
83
+ Npc = 71,
84
+ Number = 72,
85
+ PartOfDay = 73,
86
+ Prompt = 74,
87
+ QuadrantComponent = 75,
88
+ QuadrantComponentContextMenuAction = 76,
89
+ Quality = 77,
90
+ Quest = 78,
91
+ QuestRequirement = 79,
92
+ RecipeLevel = 80,
93
+ Riddle = 81,
94
+ SaveImportErrorReason = 82,
95
+ SaveSlotSort = 83,
96
+ Skill = 84,
97
+ Source = 85,
98
+ Stat = 86,
99
+ StatusEffect = 87,
100
+ TeamMemberResponsibility = 88,
101
+ TemperatureType = 89,
102
+ Terrain = 90,
103
+ TileEvent = 91,
104
+ TooltipVisibilityOption = 92,
105
+ Ui = 93,
106
+ UiQuadrant = 94,
107
+ UnableToJoinReason = 95,
108
+ UnlockedRecipesStrategy = 96,
109
+ UsableActionType = 97,
110
+ Website = 98,
111
+ WeightStatus = 99,
112
+ WorldLayer = 100
112
113
  }
113
114
  export default Dictionary;
@@ -72,6 +72,7 @@ import { Quadrant, QuadrantComponentContextMenuAction } from "ui/screen/screens/
72
72
  import { DialogId } from "ui/screen/screens/game/Dialogs";
73
73
  import { MessageTimestamp, QuadrantComponentId } from "ui/screen/screens/game/IGameScreenApi";
74
74
  import { MessageFilterDefault } from "ui/screen/screens/game/IMessages";
75
+ import { ActionSort } from "ui/screen/screens/game/static/actions/IActionsDrawer";
75
76
  import { MenuBarButtonType } from "ui/screen/screens/game/static/menubar/IMenuBarButton";
76
77
  import { CharacterSort } from "ui/screen/screens/menu/menus/character/Character";
77
78
  import { HelpArticle } from "ui/screen/screens/menu/menus/help/HelpArticleDescriptions";
@@ -85,207 +86,209 @@ export type Enum = Record<string, number> & Record<number, string>;
85
86
  export declare const SYMBOL_ANY_DICTIONARY: unique symbol;
86
87
  declare const dictionaryMap: {
87
88
  0: typeof ActionType;
88
- 1: typeof AutoSaveMode;
89
- 2: typeof BadTemperatureLevel;
90
- 3: typeof Bindable;
91
- 4: typeof BindableType;
92
- 5: typeof BiomeType;
93
- 6: typeof BleedLevel;
94
- 7: typeof BookType;
95
- 8: typeof Challenge;
96
- 9: typeof ChangeType;
97
- 10: typeof CharacterSort;
98
- 11: typeof Command;
99
- 12: typeof CreatureType;
100
- 13: typeof CraftEfficacy;
101
- 14: typeof CreatureType;
102
- 15: typeof DamageType;
103
- 16: typeof DialogId;
104
- 17: typeof Direction;
105
- 18: typeof InfoDisplayLevel;
106
- 19: typeof DoodadType;
107
- 20: typeof DoodadTypeGroup;
108
- 21: typeof DrawnMapTheme;
109
- 22: typeof DurabilityLevel;
110
- 23: typeof EquipEffect;
111
- 24: typeof EquipType;
112
- 25: typeof ExhaustionLevel;
113
- 26: typeof FireStage;
114
- 27: typeof FontStyle;
115
- 28: typeof GameEndMessage;
116
- 29: typeof GameMode;
117
- 30: typeof GrowingStage;
89
+ 1: typeof ActionSort;
90
+ 2: typeof AutoSaveMode;
91
+ 3: typeof BadTemperatureLevel;
92
+ 4: typeof Bindable;
93
+ 5: typeof BindableType;
94
+ 6: typeof BiomeType;
95
+ 7: typeof BleedLevel;
96
+ 8: typeof BookType;
97
+ 9: typeof Challenge;
98
+ 10: typeof ChangeType;
99
+ 11: typeof CharacterSort;
100
+ 12: typeof Command;
101
+ 13: typeof CreatureType;
102
+ 14: typeof CraftEfficacy;
103
+ 15: typeof CreatureType;
104
+ 16: typeof DamageType;
105
+ 17: typeof DialogId;
106
+ 18: typeof Direction;
107
+ 19: typeof InfoDisplayLevel;
108
+ 20: typeof DoodadType;
109
+ 21: typeof DoodadTypeGroup;
110
+ 22: typeof DrawnMapTheme;
111
+ 23: typeof DurabilityLevel;
112
+ 24: typeof EquipEffect;
113
+ 25: typeof EquipType;
114
+ 26: typeof ExhaustionLevel;
115
+ 27: typeof FireStage;
116
+ 28: typeof FontStyle;
117
+ 29: typeof GameEndMessage;
118
+ 30: typeof GameMode;
118
119
  31: typeof GrowingStage;
119
- 32: typeof HelpArticle;
120
- 33: typeof HighscoreSort;
121
- 34: typeof HumanName;
122
- 35: symbol;
123
- 36: typeof InspectType;
124
- 37: typeof InterruptChoice;
125
- 38: typeof SortType;
126
- 39: typeof IslandModifierType;
127
- 40: typeof IslandName;
128
- 41: typeof BiomeType;
120
+ 32: typeof GrowingStage;
121
+ 33: typeof HelpArticle;
122
+ 34: typeof HighscoreSort;
123
+ 35: typeof HumanName;
124
+ 36: symbol;
125
+ 37: typeof InspectType;
126
+ 38: typeof InterruptChoice;
127
+ 39: typeof SortType;
128
+ 40: typeof IslandModifierType;
129
+ 41: typeof IslandName;
129
130
  42: typeof BiomeType;
130
- 43: typeof IslandModifierType;
131
- 44: typeof CreatureType;
132
- 45: typeof ItemType;
133
- 46: typeof ItemTypeExtra;
134
- 47: typeof ItemTypeGroup;
135
- 48: typeof JoinServerRetryReason;
136
- 49: typeof Level;
137
- 50: typeof Load;
138
- 51: symbol;
139
- 52: typeof MagicalPropertyType;
140
- 53: typeof MapQuality;
141
- 54: typeof MenuBarButtonType;
142
- 55: typeof Message;
143
- 56: typeof MessageFilterDefault;
144
- 57: typeof MessageTimestamp;
145
- 58: typeof Milestone;
146
- 59: typeof MilestoneModifierGroup;
147
- 60: typeof MiscTranslation;
148
- 61: typeof CanLoadState;
149
- 62: typeof ModLoadFailureReason;
150
- 63: typeof ModProvide;
151
- 64: typeof ModSort;
152
- 65: typeof ModType;
153
- 66: typeof MultiplayerCompatibility;
154
- 67: typeof DisconnectReason;
155
- 68: typeof MusicPlaylist;
156
- 69: typeof Note;
157
- 70: typeof NPCType;
158
- 71: symbol;
159
- 72: typeof PartOfDay;
160
- 73: typeof Prompt;
161
- 74: typeof QuadrantComponentId;
162
- 75: typeof QuadrantComponentContextMenuAction;
163
- 76: typeof Quality;
164
- 77: typeof QuestType;
165
- 78: typeof QuestRequirementType;
166
- 79: typeof RecipeLevel;
167
- 80: typeof Riddle;
168
- 81: typeof SaveImportErrorReason;
169
- 82: typeof SaveSort;
170
- 83: typeof SkillType;
171
- 84: typeof Source;
172
- 85: typeof Stat;
173
- 86: typeof StatusType;
174
- 87: typeof Responsibility;
175
- 88: typeof TempType;
176
- 89: typeof TerrainType;
177
- 90: typeof TileEventType;
178
- 91: typeof TooltipVisibilityOption;
179
- 92: typeof UiTranslation;
180
- 93: typeof Quadrant;
181
- 94: typeof UnableToJoinReason;
182
- 95: typeof UnlockedRecipesStrategy;
183
- 96: typeof UsableActionType;
184
- 97: typeof Website;
185
- 98: typeof WeightStatus;
186
- 99: typeof WorldZ;
131
+ 43: typeof BiomeType;
132
+ 44: typeof IslandModifierType;
133
+ 45: typeof CreatureType;
134
+ 46: typeof ItemType;
135
+ 47: typeof ItemTypeExtra;
136
+ 48: typeof ItemTypeGroup;
137
+ 49: typeof JoinServerRetryReason;
138
+ 50: typeof Level;
139
+ 51: typeof Load;
140
+ 52: symbol;
141
+ 53: typeof MagicalPropertyType;
142
+ 54: typeof MapQuality;
143
+ 55: typeof MenuBarButtonType;
144
+ 56: typeof Message;
145
+ 57: typeof MessageFilterDefault;
146
+ 58: typeof MessageTimestamp;
147
+ 59: typeof Milestone;
148
+ 60: typeof MilestoneModifierGroup;
149
+ 61: typeof MiscTranslation;
150
+ 62: typeof CanLoadState;
151
+ 63: typeof ModLoadFailureReason;
152
+ 64: typeof ModProvide;
153
+ 65: typeof ModSort;
154
+ 66: typeof ModType;
155
+ 67: typeof MultiplayerCompatibility;
156
+ 68: typeof DisconnectReason;
157
+ 69: typeof MusicPlaylist;
158
+ 70: typeof Note;
159
+ 71: typeof NPCType;
160
+ 72: symbol;
161
+ 73: typeof PartOfDay;
162
+ 74: typeof Prompt;
163
+ 75: typeof QuadrantComponentId;
164
+ 76: typeof QuadrantComponentContextMenuAction;
165
+ 77: typeof Quality;
166
+ 78: typeof QuestType;
167
+ 79: typeof QuestRequirementType;
168
+ 80: typeof RecipeLevel;
169
+ 81: typeof Riddle;
170
+ 82: typeof SaveImportErrorReason;
171
+ 83: typeof SaveSort;
172
+ 84: typeof SkillType;
173
+ 85: typeof Source;
174
+ 86: typeof Stat;
175
+ 87: typeof StatusType;
176
+ 88: typeof Responsibility;
177
+ 89: typeof TempType;
178
+ 90: typeof TerrainType;
179
+ 91: typeof TileEventType;
180
+ 92: typeof TooltipVisibilityOption;
181
+ 93: typeof UiTranslation;
182
+ 94: typeof Quadrant;
183
+ 95: typeof UnableToJoinReason;
184
+ 96: typeof UnlockedRecipesStrategy;
185
+ 97: typeof UsableActionType;
186
+ 98: typeof Website;
187
+ 99: typeof WeightStatus;
188
+ 100: typeof WorldZ;
187
189
  };
188
190
  export declare const strictDictionaries: {
189
191
  0: typeof ActionType;
190
- 1: typeof AutoSaveMode;
191
- 2: typeof BadTemperatureLevel;
192
- 3: typeof Bindable;
193
- 4: typeof BindableType;
194
- 5: typeof BiomeType;
195
- 6: typeof BleedLevel;
196
- 7: typeof BookType;
197
- 8: typeof Challenge;
198
- 9: typeof ChangeType;
199
- 10: typeof CharacterSort;
200
- 11: typeof Command;
201
- 12: typeof CreatureType;
202
- 13: typeof CraftEfficacy;
203
- 14: typeof CreatureType;
204
- 15: typeof DamageType;
205
- 16: typeof DialogId;
206
- 17: typeof Direction;
207
- 18: typeof InfoDisplayLevel;
208
- 19: typeof DoodadType;
209
- 20: typeof DoodadTypeGroup;
210
- 21: typeof DrawnMapTheme;
211
- 22: typeof DurabilityLevel;
212
- 23: typeof EquipEffect;
213
- 24: typeof EquipType;
214
- 25: typeof ExhaustionLevel;
215
- 26: typeof FireStage;
216
- 27: typeof FontStyle;
217
- 28: typeof GameEndMessage;
218
- 29: typeof GameMode;
219
- 30: typeof GrowingStage;
192
+ 1: typeof ActionSort;
193
+ 2: typeof AutoSaveMode;
194
+ 3: typeof BadTemperatureLevel;
195
+ 4: typeof Bindable;
196
+ 5: typeof BindableType;
197
+ 6: typeof BiomeType;
198
+ 7: typeof BleedLevel;
199
+ 8: typeof BookType;
200
+ 9: typeof Challenge;
201
+ 10: typeof ChangeType;
202
+ 11: typeof CharacterSort;
203
+ 12: typeof Command;
204
+ 13: typeof CreatureType;
205
+ 14: typeof CraftEfficacy;
206
+ 15: typeof CreatureType;
207
+ 16: typeof DamageType;
208
+ 17: typeof DialogId;
209
+ 18: typeof Direction;
210
+ 19: typeof InfoDisplayLevel;
211
+ 20: typeof DoodadType;
212
+ 21: typeof DoodadTypeGroup;
213
+ 22: typeof DrawnMapTheme;
214
+ 23: typeof DurabilityLevel;
215
+ 24: typeof EquipEffect;
216
+ 25: typeof EquipType;
217
+ 26: typeof ExhaustionLevel;
218
+ 27: typeof FireStage;
219
+ 28: typeof FontStyle;
220
+ 29: typeof GameEndMessage;
221
+ 30: typeof GameMode;
220
222
  31: typeof GrowingStage;
221
- 32: typeof HelpArticle;
222
- 33: typeof HighscoreSort;
223
- 34: typeof HumanName;
224
- 35: symbol;
225
- 36: typeof InspectType;
226
- 37: typeof InterruptChoice;
227
- 38: typeof SortType;
228
- 39: typeof IslandModifierType;
229
- 40: typeof IslandName;
230
- 41: typeof BiomeType;
223
+ 32: typeof GrowingStage;
224
+ 33: typeof HelpArticle;
225
+ 34: typeof HighscoreSort;
226
+ 35: typeof HumanName;
227
+ 36: symbol;
228
+ 37: typeof InspectType;
229
+ 38: typeof InterruptChoice;
230
+ 39: typeof SortType;
231
+ 40: typeof IslandModifierType;
232
+ 41: typeof IslandName;
231
233
  42: typeof BiomeType;
232
- 43: typeof IslandModifierType;
233
- 44: typeof CreatureType;
234
- 45: typeof ItemType;
235
- 46: typeof ItemTypeExtra;
236
- 47: typeof ItemTypeGroup;
237
- 48: typeof JoinServerRetryReason;
238
- 49: typeof Level;
239
- 50: typeof Load;
240
- 51: symbol;
241
- 52: typeof MagicalPropertyType;
242
- 53: typeof MapQuality;
243
- 54: typeof MenuBarButtonType;
244
- 55: typeof Message;
245
- 56: typeof MessageFilterDefault;
246
- 57: typeof MessageTimestamp;
247
- 58: typeof Milestone;
248
- 59: typeof MilestoneModifierGroup;
249
- 60: typeof MiscTranslation;
250
- 61: typeof CanLoadState;
251
- 62: typeof ModLoadFailureReason;
252
- 63: typeof ModProvide;
253
- 64: typeof ModSort;
254
- 65: typeof ModType;
255
- 66: typeof MultiplayerCompatibility;
256
- 67: typeof DisconnectReason;
257
- 68: typeof MusicPlaylist;
258
- 69: typeof Note;
259
- 70: typeof NPCType;
260
- 71: symbol;
261
- 72: typeof PartOfDay;
262
- 73: typeof Prompt;
263
- 74: typeof QuadrantComponentId;
264
- 75: typeof QuadrantComponentContextMenuAction;
265
- 76: typeof Quality;
266
- 77: typeof QuestType;
267
- 78: typeof QuestRequirementType;
268
- 79: typeof RecipeLevel;
269
- 80: typeof Riddle;
270
- 81: typeof SaveImportErrorReason;
271
- 82: typeof SaveSort;
272
- 83: typeof SkillType;
273
- 84: typeof Source;
274
- 85: typeof Stat;
275
- 86: typeof StatusType;
276
- 87: typeof Responsibility;
277
- 88: typeof TempType;
278
- 89: typeof TerrainType;
279
- 90: typeof TileEventType;
280
- 91: typeof TooltipVisibilityOption;
281
- 92: typeof UiTranslation;
282
- 93: typeof Quadrant;
283
- 94: typeof UnableToJoinReason;
284
- 95: typeof UnlockedRecipesStrategy;
285
- 96: typeof UsableActionType;
286
- 97: typeof Website;
287
- 98: typeof WeightStatus;
288
- 99: typeof WorldZ;
234
+ 43: typeof BiomeType;
235
+ 44: typeof IslandModifierType;
236
+ 45: typeof CreatureType;
237
+ 46: typeof ItemType;
238
+ 47: typeof ItemTypeExtra;
239
+ 48: typeof ItemTypeGroup;
240
+ 49: typeof JoinServerRetryReason;
241
+ 50: typeof Level;
242
+ 51: typeof Load;
243
+ 52: symbol;
244
+ 53: typeof MagicalPropertyType;
245
+ 54: typeof MapQuality;
246
+ 55: typeof MenuBarButtonType;
247
+ 56: typeof Message;
248
+ 57: typeof MessageFilterDefault;
249
+ 58: typeof MessageTimestamp;
250
+ 59: typeof Milestone;
251
+ 60: typeof MilestoneModifierGroup;
252
+ 61: typeof MiscTranslation;
253
+ 62: typeof CanLoadState;
254
+ 63: typeof ModLoadFailureReason;
255
+ 64: typeof ModProvide;
256
+ 65: typeof ModSort;
257
+ 66: typeof ModType;
258
+ 67: typeof MultiplayerCompatibility;
259
+ 68: typeof DisconnectReason;
260
+ 69: typeof MusicPlaylist;
261
+ 70: typeof Note;
262
+ 71: typeof NPCType;
263
+ 72: symbol;
264
+ 73: typeof PartOfDay;
265
+ 74: typeof Prompt;
266
+ 75: typeof QuadrantComponentId;
267
+ 76: typeof QuadrantComponentContextMenuAction;
268
+ 77: typeof Quality;
269
+ 78: typeof QuestType;
270
+ 79: typeof QuestRequirementType;
271
+ 80: typeof RecipeLevel;
272
+ 81: typeof Riddle;
273
+ 82: typeof SaveImportErrorReason;
274
+ 83: typeof SaveSort;
275
+ 84: typeof SkillType;
276
+ 85: typeof Source;
277
+ 86: typeof Stat;
278
+ 87: typeof StatusType;
279
+ 88: typeof Responsibility;
280
+ 89: typeof TempType;
281
+ 90: typeof TerrainType;
282
+ 91: typeof TileEventType;
283
+ 92: typeof TooltipVisibilityOption;
284
+ 93: typeof UiTranslation;
285
+ 94: typeof Quadrant;
286
+ 95: typeof UnableToJoinReason;
287
+ 96: typeof UnlockedRecipesStrategy;
288
+ 97: typeof UsableActionType;
289
+ 98: typeof Website;
290
+ 99: typeof WeightStatus;
291
+ 100: typeof WorldZ;
289
292
  };
290
293
  export type DictionaryEnum = (typeof dictionaryMap)[Dictionary];
291
294
  export type DictionaryEntryEnums = {
@@ -393,6 +396,7 @@ declare const dictionaries: {
393
396
  97: typeof SYMBOL_ANY_DICTIONARY | Enum;
394
397
  98: typeof SYMBOL_ANY_DICTIONARY | Enum;
395
398
  99: typeof SYMBOL_ANY_DICTIONARY | Enum;
399
+ 100: typeof SYMBOL_ANY_DICTIONARY | Enum;
396
400
  } & Record<number, typeof SYMBOL_ANY_DICTIONARY | Enum | undefined> & {
397
401
  getByEnum: typeof getByEnum;
398
402
  };
@@ -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 { ActionSort } from "ui/screen/screens/game/static/actions/IActionsDrawer";
12
+ declare const actionSorts: Descriptions<ActionSort, string>;
13
+ export default actionSorts;
@@ -29,7 +29,7 @@ export default class StringTokenizer implements IUnserializedCallback {
29
29
  onUnserialized(): void;
30
30
  clear(): void;
31
31
  /**
32
- * Writes the token for the string if it has one
32
+ * Reads the token for the string if it has one
33
33
  * @param serializer Serializer object
34
34
  * @return Detokenized string or undefined if the string was not tokenized
35
35
  */
@@ -21,6 +21,7 @@ import type { IBindHandlerApi } from "ui/input/Bind";
21
21
  import LoadingBridge from "ui/LoadingBridge";
22
22
  import PromptsBridge from "ui/PromptsBridge";
23
23
  import SaveDropHandler from "ui/SaveDropHandler";
24
+ import { ScreenId } from "ui/screen/IScreen";
24
25
  import ScreenManager from "ui/screen/ScreenManager";
25
26
  import SelectionHandler from "ui/screen/screens/menu/component/SelectionHandler";
26
27
  import ServerJoinHandler from "ui/ServerJoinHandler";
@@ -98,6 +99,10 @@ export declare class Ui extends EventEmitter.Host<IUiEvents> {
98
99
  updatePowerMode(): void;
99
100
  toggleDeveloperMode(enabled: boolean): this;
100
101
  protected onGlobalSlotLoaded(): void;
102
+ /**
103
+ * Screen id used while in game / playing
104
+ */
105
+ get primaryScreenId(): ScreenId.DedicatedServer | ScreenId.Game;
101
106
  protected onPlay(): void;
102
107
  protected onStopPlay(game: Game, state: PlayerState): Promise<void>;
103
108
  protected onInterruptClosed(): void;
@@ -199,6 +199,8 @@ export default class Component<E extends HTMLElement = HTMLElement> extends Even
199
199
  * An alias for `element.querySelectorAll(selector)`
200
200
  */
201
201
  findDescendants<E extends HTMLElement = HTMLElement>(selector: string): NodeListOf<E>;
202
+ queryX<N extends Node = Node>(selector: string): N | null;
203
+ queryXAll<N extends Node = Node>(selector: string): N[];
202
204
  /**
203
205
  * An alias for `element.closest(selector)`
204
206
  */
@@ -13,4 +13,5 @@ export default class Contenteditable extends Input {
13
13
  get text(): string;
14
14
  constructor();
15
15
  setText(text: string, triggerEvent?: boolean): this;
16
+ private onPaste;
16
17
  }
@@ -59,6 +59,7 @@ export default class Input extends Component implements IRefreshable {
59
59
  private readonly _disabledReasons;
60
60
  get disabled(): boolean;
61
61
  constructor(type?: "input" | "textarea");
62
+ isFocused(): boolean;
62
63
  setDisabled(val?: boolean, reason?: string): this;
63
64
  isSelectable(): boolean;
64
65
  getSelectionTarget(): Component<HTMLElement>;
@@ -90,6 +91,10 @@ export default class Input extends Component implements IRefreshable {
90
91
  */
91
92
  clear(clearType?: ClearType): this;
92
93
  focus(): void;
94
+ private emitEnterBindOn;
95
+ setEmitEnterBindOn(on: "blur" | "keydown"): this;
96
+ private shouldIgnoreShiftEnter;
97
+ setIgnoreShiftEnter(ignore?: boolean): this;
93
98
  blur(_event?: Event): void;
94
99
  select(): this;
95
100
  private keydown;
@@ -50,7 +50,7 @@ export default abstract class QuadrantComponent extends StaticComponent {
50
50
  protected readonly scrollableHandler: void;
51
51
  get preferredQuadrant(): Quadrant;
52
52
  get quadrant(): Quadrant;
53
- get quadrantName(): "None" | "Top" | "Bottom" | "TopRight" | "BottomRight" | "BottomLeft" | "TopLeft" | "Any";
53
+ get quadrantName(): "None" | "Top" | "TopRight" | "BottomRight" | "Bottom" | "BottomLeft" | "TopLeft" | "Any";
54
54
  readonly log: Log;
55
55
  constructor(id: QuadrantComponentId);
56
56
  protected registerDataHost(): void;
@@ -17,8 +17,8 @@ import type { QuestInstance } from "game/entity/player/quest/QuestManager";
17
17
  import type { Game } from "game/Game";
18
18
  import Button from "ui/component/Button";
19
19
  import Component from "ui/component/Component";
20
+ import Contenteditable from "ui/component/Contenteditable";
20
21
  import type { ContextMenuDescriptions } from "ui/component/ContextMenu";
21
- import type Input from "ui/component/Input";
22
22
  import type { IBindHandlerApi } from "ui/input/Bind";
23
23
  import { Quadrant } from "ui/screen/screens/game/component/IQuadrantComponent";
24
24
  import QuadrantComponent from "ui/screen/screens/game/component/QuadrantComponent";
@@ -38,7 +38,7 @@ export default class Messages extends QuadrantComponent {
38
38
  readonly sendButton: Button;
39
39
  readonly pinnedMessages: Component;
40
40
  readonly messagelog: Component;
41
- readonly input: Input;
41
+ readonly input: Contenteditable;
42
42
  readonly filter: Button | undefined;
43
43
  pinNotesAutomatically: boolean;
44
44
  filters: IFilters;
@@ -14,9 +14,12 @@ import { CheckButton } from "ui/component/CheckButton";
14
14
  import ChoiceList, { Choice } from "ui/component/ChoiceList";
15
15
  import Component from "ui/component/Component";
16
16
  import HorizontalLine from "ui/component/HorizontalLine";
17
+ import Input from "ui/component/Input";
17
18
  import type { IRefreshable } from "ui/component/Refreshable";
18
19
  import Text, { Paragraph } from "ui/component/Text";
20
+ import type { IBindHandlerApi } from "ui/input/Bind";
19
21
  import { IActionBarSlotData } from "ui/screen/screens/game/static/actions/IActionBar";
22
+ import SelectionHandler from "ui/screen/screens/menu/component/SelectionHandler";
20
23
  declare enum Classes {
21
24
  Main = "game-action-configuration-drawer",
22
25
  Header = "game-action-configuration-drawer-header",
@@ -28,7 +31,11 @@ declare enum Classes {
28
31
  Column = "game-action-configuration-drawer-column",
29
32
  ColumnContent = "game-action-configuration-drawer-column-content",
30
33
  ColumnsContainer = "game-action-configuration-drawer-columns-container",
34
+ ActionsColumnsContainer = "game-action-configuration-drawer-columns-container-actions",
35
+ ActionsFilterSortContainer = "game-action-configuration-drawer-actions-filter-sort-container",
36
+ ActionsFilter = "game-action-configuration-drawer-actions-filter",
31
37
  ConfigurationColumn = "game-action-configuration-drawer-configuration-column",
38
+ ConfigurationColumnCloseNoAction = "game-action-configuration-drawer-configuration-column-close-no-action",
32
39
  Hints = "game-action-configuration-drawer-hints",
33
40
  Hint = "game-action-configuration-drawer-hint",
34
41
  HintLabel = "game-action-configuration-drawer-hint-label",
@@ -36,6 +43,7 @@ declare enum Classes {
36
43
  ActionButton = "game-action-configuration-drawer-action-button",
37
44
  ActionButtonInapplicable = "game-action-configuration-drawer-action-button-inapplicable",
38
45
  ActionButtonSlotted = "game-action-configuration-drawer-action-button-slotted",
46
+ ActionButtonSelected = "game-action-configuration-drawer-action-button-selected",
39
47
  ConfigurationColumnTitle = "game-action-configuration-drawer-column-title",
40
48
  ConfigurationColumnDescription = "game-action-configuration-drawer-column-description",
41
49
  ConfigurationColumnTitleInapplicable = "game-action-configuration-drawer-column-title-inapplicable"
@@ -59,6 +67,11 @@ export default class ActionsConfigurationDrawer extends Component implements IRe
59
67
  readonly columnsContainer: Component<HTMLElement>;
60
68
  readonly footer: Component<HTMLElement>;
61
69
  readonly discoveryHint: Text;
70
+ readonly actionsFilterSort: Component<HTMLElement>;
71
+ readonly actionsColumnsContainer: Component<HTMLElement>;
72
+ readonly filterInput: Input;
73
+ private lastFilter?;
74
+ private filter;
62
75
  readonly actionsColumn: Component<HTMLElement>;
63
76
  readonly actionsColumnContent: Component<HTMLElement>;
64
77
  readonly itemActionsColumn: Component<HTMLElement>;
@@ -87,7 +100,7 @@ export default class ActionsConfigurationDrawer extends Component implements IRe
87
100
  private current?;
88
101
  private savedUsing?;
89
102
  constructor();
90
- open(number: number, slot: IActionBarSlotData): this;
103
+ open(number: number, slot: IActionBarSlotData): Promise<this>;
91
104
  refresh(updateSavedUsing?: boolean): this;
92
105
  protected onHide(): void;
93
106
  private editBindings;
@@ -105,4 +118,17 @@ export default class ActionsConfigurationDrawer extends Component implements IRe
105
118
  private selectAction;
106
119
  updateConfigurationColumn(): void;
107
120
  private getAction;
121
+ private selectedAction?;
122
+ private selectedColumn?;
123
+ private getVisibleActions;
124
+ protected onMenuCancel(): boolean;
125
+ protected onNext(): boolean;
126
+ protected onPrevious(): boolean;
127
+ protected onLeft(): boolean;
128
+ protected onEnterBind(api: IBindHandlerApi | Input): boolean;
129
+ protected onSelectionChange(handler: SelectionHandler, component?: Component): void;
130
+ private selectNext;
131
+ private selectPrevious;
132
+ private unselectHighlightAction;
133
+ private selectHighlightAction;
108
134
  }
@@ -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
+ export declare enum ActionSort {
12
+ Default = 0
13
+ }
@@ -9,6 +9,7 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import { ExpectedLifetime } from "utilities/memory/ILifetime";
12
+ import type Screen from "ui/screen/Screen";
12
13
  declare class MemoryLeakDetector {
13
14
  private surpressLogs;
14
15
  private nextObjectId;
@@ -20,7 +21,8 @@ declare class MemoryLeakDetector {
20
21
  waitForIdle(): Promise<void>;
21
22
  register(object: object, objectName: string, expectedLifetime: ExpectedLifetime, parentObjectIdentifier?: string): void;
22
23
  registerMultiple<T extends object>(prefix: string, objects: SaferArray<T>, objectNamer: (object: T) => string, expectedLifetime: ExpectedLifetime): void;
23
- onStopPlay(): Promise<void>;
24
+ onStopPlay(): void;
25
+ onScreenShow(_: any, screen: Screen): Promise<any>;
24
26
  private runCheck;
25
27
  garbageCollect(): Promise<void>;
26
28
  private checkObjects;
@@ -9,5 +9,9 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  declare global {
12
+ interface Node {
13
+ queryXPath(selector: string): Node | null;
14
+ queryXPathAll(selector: string): Node[];
15
+ }
12
16
  }
13
17
  export default function (): void;
@@ -8,7 +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
- export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 12, gameVersionPatch = 2, gameVersionName = "Wheels & Wetlands";
11
+ export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 12, gameVersionPatch = 3, gameVersionName = "Wheels & Wetlands";
12
12
  export declare const gameVersion: string;
13
13
  export declare const gameVersionTitleMajor: string;
14
14
  export declare const gameVersionTitleMinor: string;
@@ -8,9 +8,11 @@
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 { Milestone } from "@wayward/game/game/milestones/IMilestone";
11
12
  export interface ICommonGameOptions {
12
13
  gameMode: GameMode;
13
14
  seed?: string | number;
15
+ enableMilestoneModifiers?: Set<Milestone>;
14
16
  enableAllMilestoneModifiers?: boolean;
15
17
  }
16
18
  export interface IWaitUntilGameLoadedOptions {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.12.2-beta.dev.20221219.1",
4
+ "version": "2.12.3-beta.dev.20221229.3",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",