@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.
- package/definitions/game/event/EventBuses.d.ts +10 -7
- package/definitions/game/game/inspection/infoProviders/item/ItemDetails.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/stat/AttackInfo.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/CorpseInspection.d.ts +1 -1
- package/definitions/game/game/reference/ReferenceManager.d.ts +1 -1
- package/definitions/game/language/Dictionary.d.ts +100 -99
- package/definitions/game/language/DictionaryMap.d.ts +198 -194
- package/definitions/game/language/english/ui/sort/ActionSorts.d.ts +13 -0
- package/definitions/game/save/serializer/StringTokenizer.d.ts +1 -1
- package/definitions/game/ui/Ui.d.ts +5 -0
- package/definitions/game/ui/component/Component.d.ts +2 -0
- package/definitions/game/ui/component/Contenteditable.d.ts +1 -0
- package/definitions/game/ui/component/Input.d.ts +5 -0
- package/definitions/game/ui/screen/screens/game/component/QuadrantComponent.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/static/Messages.d.ts +2 -2
- package/definitions/game/ui/screen/screens/game/static/actions/ActionsDrawer.d.ts +27 -1
- package/definitions/game/ui/screen/screens/game/static/actions/IActionsDrawer.d.ts +13 -0
- package/definitions/game/utilities/memory/MemoryLeakDetector.d.ts +3 -1
- package/definitions/game/utilities/prototype/Node.d.ts +4 -0
- package/definitions/hosts/shared/globals.d.ts +1 -1
- package/definitions/test/interfaces.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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 |
|
|
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(): (
|
|
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 |
|
|
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
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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
|
|
89
|
-
2: typeof
|
|
90
|
-
3: typeof
|
|
91
|
-
4: typeof
|
|
92
|
-
5: typeof
|
|
93
|
-
6: typeof
|
|
94
|
-
7: typeof
|
|
95
|
-
8: typeof
|
|
96
|
-
9: typeof
|
|
97
|
-
10: typeof
|
|
98
|
-
11: typeof
|
|
99
|
-
12: typeof
|
|
100
|
-
13: typeof
|
|
101
|
-
14: typeof
|
|
102
|
-
15: typeof
|
|
103
|
-
16: typeof
|
|
104
|
-
17: typeof
|
|
105
|
-
18: typeof
|
|
106
|
-
19: typeof
|
|
107
|
-
20: typeof
|
|
108
|
-
21: typeof
|
|
109
|
-
22: typeof
|
|
110
|
-
23: typeof
|
|
111
|
-
24: typeof
|
|
112
|
-
25: typeof
|
|
113
|
-
26: typeof
|
|
114
|
-
27: typeof
|
|
115
|
-
28: typeof
|
|
116
|
-
29: typeof
|
|
117
|
-
30: typeof
|
|
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
|
|
120
|
-
33: typeof
|
|
121
|
-
34: typeof
|
|
122
|
-
35:
|
|
123
|
-
36:
|
|
124
|
-
37: typeof
|
|
125
|
-
38: typeof
|
|
126
|
-
39: typeof
|
|
127
|
-
40: typeof
|
|
128
|
-
41: typeof
|
|
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
|
|
131
|
-
44: typeof
|
|
132
|
-
45: typeof
|
|
133
|
-
46: typeof
|
|
134
|
-
47: typeof
|
|
135
|
-
48: typeof
|
|
136
|
-
49: typeof
|
|
137
|
-
50: typeof
|
|
138
|
-
51:
|
|
139
|
-
52:
|
|
140
|
-
53: typeof
|
|
141
|
-
54: typeof
|
|
142
|
-
55: typeof
|
|
143
|
-
56: typeof
|
|
144
|
-
57: typeof
|
|
145
|
-
58: typeof
|
|
146
|
-
59: typeof
|
|
147
|
-
60: typeof
|
|
148
|
-
61: typeof
|
|
149
|
-
62: typeof
|
|
150
|
-
63: typeof
|
|
151
|
-
64: typeof
|
|
152
|
-
65: typeof
|
|
153
|
-
66: typeof
|
|
154
|
-
67: typeof
|
|
155
|
-
68: typeof
|
|
156
|
-
69: typeof
|
|
157
|
-
70: typeof
|
|
158
|
-
71:
|
|
159
|
-
72:
|
|
160
|
-
73: typeof
|
|
161
|
-
74: typeof
|
|
162
|
-
75: typeof
|
|
163
|
-
76: typeof
|
|
164
|
-
77: typeof
|
|
165
|
-
78: typeof
|
|
166
|
-
79: typeof
|
|
167
|
-
80: typeof
|
|
168
|
-
81: typeof
|
|
169
|
-
82: typeof
|
|
170
|
-
83: typeof
|
|
171
|
-
84: typeof
|
|
172
|
-
85: typeof
|
|
173
|
-
86: typeof
|
|
174
|
-
87: typeof
|
|
175
|
-
88: typeof
|
|
176
|
-
89: typeof
|
|
177
|
-
90: typeof
|
|
178
|
-
91: typeof
|
|
179
|
-
92: typeof
|
|
180
|
-
93: typeof
|
|
181
|
-
94: typeof
|
|
182
|
-
95: typeof
|
|
183
|
-
96: typeof
|
|
184
|
-
97: typeof
|
|
185
|
-
98: typeof
|
|
186
|
-
99: typeof
|
|
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
|
|
191
|
-
2: typeof
|
|
192
|
-
3: typeof
|
|
193
|
-
4: typeof
|
|
194
|
-
5: typeof
|
|
195
|
-
6: typeof
|
|
196
|
-
7: typeof
|
|
197
|
-
8: typeof
|
|
198
|
-
9: typeof
|
|
199
|
-
10: typeof
|
|
200
|
-
11: typeof
|
|
201
|
-
12: typeof
|
|
202
|
-
13: typeof
|
|
203
|
-
14: typeof
|
|
204
|
-
15: typeof
|
|
205
|
-
16: typeof
|
|
206
|
-
17: typeof
|
|
207
|
-
18: typeof
|
|
208
|
-
19: typeof
|
|
209
|
-
20: typeof
|
|
210
|
-
21: typeof
|
|
211
|
-
22: typeof
|
|
212
|
-
23: typeof
|
|
213
|
-
24: typeof
|
|
214
|
-
25: typeof
|
|
215
|
-
26: typeof
|
|
216
|
-
27: typeof
|
|
217
|
-
28: typeof
|
|
218
|
-
29: typeof
|
|
219
|
-
30: typeof
|
|
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
|
|
222
|
-
33: typeof
|
|
223
|
-
34: typeof
|
|
224
|
-
35:
|
|
225
|
-
36:
|
|
226
|
-
37: typeof
|
|
227
|
-
38: typeof
|
|
228
|
-
39: typeof
|
|
229
|
-
40: typeof
|
|
230
|
-
41: typeof
|
|
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
|
|
233
|
-
44: typeof
|
|
234
|
-
45: typeof
|
|
235
|
-
46: typeof
|
|
236
|
-
47: typeof
|
|
237
|
-
48: typeof
|
|
238
|
-
49: typeof
|
|
239
|
-
50: typeof
|
|
240
|
-
51:
|
|
241
|
-
52:
|
|
242
|
-
53: typeof
|
|
243
|
-
54: typeof
|
|
244
|
-
55: typeof
|
|
245
|
-
56: typeof
|
|
246
|
-
57: typeof
|
|
247
|
-
58: typeof
|
|
248
|
-
59: typeof
|
|
249
|
-
60: typeof
|
|
250
|
-
61: typeof
|
|
251
|
-
62: typeof
|
|
252
|
-
63: typeof
|
|
253
|
-
64: typeof
|
|
254
|
-
65: typeof
|
|
255
|
-
66: typeof
|
|
256
|
-
67: typeof
|
|
257
|
-
68: typeof
|
|
258
|
-
69: typeof
|
|
259
|
-
70: typeof
|
|
260
|
-
71:
|
|
261
|
-
72:
|
|
262
|
-
73: typeof
|
|
263
|
-
74: typeof
|
|
264
|
-
75: typeof
|
|
265
|
-
76: typeof
|
|
266
|
-
77: typeof
|
|
267
|
-
78: typeof
|
|
268
|
-
79: typeof
|
|
269
|
-
80: typeof
|
|
270
|
-
81: typeof
|
|
271
|
-
82: typeof
|
|
272
|
-
83: typeof
|
|
273
|
-
84: typeof
|
|
274
|
-
85: typeof
|
|
275
|
-
86: typeof
|
|
276
|
-
87: typeof
|
|
277
|
-
88: typeof
|
|
278
|
-
89: typeof
|
|
279
|
-
90: typeof
|
|
280
|
-
91: typeof
|
|
281
|
-
92: typeof
|
|
282
|
-
93: typeof
|
|
283
|
-
94: typeof
|
|
284
|
-
95: typeof
|
|
285
|
-
96: typeof
|
|
286
|
-
97: typeof
|
|
287
|
-
98: typeof
|
|
288
|
-
99: typeof
|
|
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
|
-
*
|
|
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
|
*/
|
|
@@ -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" | "
|
|
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:
|
|
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():
|
|
24
|
+
onStopPlay(): void;
|
|
25
|
+
onScreenShow(_: any, screen: Screen): Promise<any>;
|
|
24
26
|
private runCheck;
|
|
25
27
|
garbageCollect(): Promise<void>;
|
|
26
28
|
private checkObjects;
|
|
@@ -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 =
|
|
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