@wayward/types 2.13.0-beta.dev.20230315.1 → 2.13.0-beta.dev.20230317.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/audio/IAudio.d.ts +32 -31
- package/definitions/game/game/entity/npc/NPCManager.d.ts +1 -0
- package/definitions/game/game/meta/prompt/IPrompt.d.ts +99 -100
- package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +0 -1
- package/definitions/game/game/tile/Tile.d.ts +6 -1
- package/definitions/game/language/dictionary/Message.d.ts +744 -742
- package/definitions/game/language/dictionary/UiTranslation.d.ts +882 -883
- package/definitions/game/renderer/IRenderer.d.ts +10 -1
- package/definitions/game/renderer/world/WorldRenderer.d.ts +1 -0
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +1 -0
- package/definitions/game/utilities/collection/map/PriorityMap.d.ts +1 -0
- package/package.json +1 -1
|
@@ -32,37 +32,38 @@ export declare enum SfxType {
|
|
|
32
32
|
CreatureHit = 5,
|
|
33
33
|
CreatureNoise = 6,
|
|
34
34
|
Damaged = 7,
|
|
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
|
-
|
|
35
|
+
DangerousMove = 8,
|
|
36
|
+
Death = 9,
|
|
37
|
+
Eating = 10,
|
|
38
|
+
Exceptional = 11,
|
|
39
|
+
Extinguish = 12,
|
|
40
|
+
Fail = 13,
|
|
41
|
+
GraniteHit = 14,
|
|
42
|
+
Hit = 15,
|
|
43
|
+
Hurt = 16,
|
|
44
|
+
Minecart = 17,
|
|
45
|
+
Miss = 18,
|
|
46
|
+
PickUp = 19,
|
|
47
|
+
SandstoneHit = 20,
|
|
48
|
+
Swim = 21,
|
|
49
|
+
Throw = 22,
|
|
50
|
+
Trample = 23,
|
|
51
|
+
TreeHit = 24,
|
|
52
|
+
UiActivate = 25,
|
|
53
|
+
UiChoose = 26,
|
|
54
|
+
UiClose = 27,
|
|
55
|
+
UiDisable = 28,
|
|
56
|
+
UiEnable = 29,
|
|
57
|
+
UiInput = 30,
|
|
58
|
+
UiInputdelete = 31,
|
|
59
|
+
UiInvalid = 32,
|
|
60
|
+
UiOpen = 33,
|
|
61
|
+
UiOpensmall = 34,
|
|
62
|
+
UiProtect = 35,
|
|
63
|
+
UiSelect = 36,
|
|
64
|
+
UiUnprotect = 37,
|
|
65
|
+
Walk = 38,
|
|
66
|
+
Water = 39
|
|
66
67
|
}
|
|
67
68
|
export type SfxUi = Extract<keyof typeof SfxType, `Ui${string}`> extends `Ui${infer RESULT}` ? Lowercase<RESULT> : never;
|
|
68
69
|
export declare enum Music {
|
|
@@ -16,6 +16,7 @@ import NPC from "game/entity/npc/NPC";
|
|
|
16
16
|
import type Tile from "game/tile/Tile";
|
|
17
17
|
export interface INPCCanCreateOptions extends IEntityCanCreateOptions {
|
|
18
18
|
uniqueNpcType?: string;
|
|
19
|
+
disablePlayerLike?: boolean;
|
|
19
20
|
}
|
|
20
21
|
export interface INPCManagerEvents extends Events<EntityManager<NPC>> {
|
|
21
22
|
/**
|
|
@@ -26,106 +26,105 @@ export declare enum Prompt {
|
|
|
26
26
|
GameConfirmationDroppingContainer = 8,
|
|
27
27
|
GameConfirmationRestWithEquippedFireSource = 9,
|
|
28
28
|
GameContainerNotFull = 10,
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
UiSaveDrop = 110
|
|
29
|
+
GameDesalinationNoNeed = 11,
|
|
30
|
+
GameExtinguishWaterStill = 12,
|
|
31
|
+
GameItemMayBeDestroyedInCraft = 13,
|
|
32
|
+
GameItemMayCauseBurns = 14,
|
|
33
|
+
GameItemsMayBeDestroyedOnUse = 15,
|
|
34
|
+
GameLoadFailure = 16,
|
|
35
|
+
GameNoHealingRequired = 17,
|
|
36
|
+
GameNoSaveOnDeath = 18,
|
|
37
|
+
GamePickUpStillWithWater = 19,
|
|
38
|
+
GameReleaseCreature = 20,
|
|
39
|
+
GameUncage = 21,
|
|
40
|
+
GameRenameGeneric = 22,
|
|
41
|
+
GameRenameCreature = 23,
|
|
42
|
+
GameRenameDoodad = 24,
|
|
43
|
+
GameRenameItem = 25,
|
|
44
|
+
GameReturnToTitleScreen = 26,
|
|
45
|
+
GameReturnToTitleScreenChallenge = 27,
|
|
46
|
+
GameSailAwayEnd = 28,
|
|
47
|
+
GameSailAwayReturnable = 29,
|
|
48
|
+
GameSaveFailure = 30,
|
|
49
|
+
GameIslandTravelConfirmation = 31,
|
|
50
|
+
GameWellConvert = 32,
|
|
51
|
+
GameSolarStillWontWorkInTemperature = 33,
|
|
52
|
+
GameSolarStillWontWorkInCave = 34,
|
|
53
|
+
GameShipToIslandPayment = 35,
|
|
54
|
+
GamePause = 36,
|
|
55
|
+
GameWin = 37,
|
|
56
|
+
GameOver = 38,
|
|
57
|
+
GameHelp = 39,
|
|
58
|
+
GameMultiplayerOptions = 40,
|
|
59
|
+
GameEditBindings = 41,
|
|
60
|
+
MenuCharacterCreationImportCharacterFailure = 42,
|
|
61
|
+
MenuCharacterSelectionDeleteCharacter = 43,
|
|
62
|
+
MenuGameEndGhostDeleteSave = 44,
|
|
63
|
+
MenuGameEndWonDeleteSave = 45,
|
|
64
|
+
MenuGameEndReturnToTitleScreen = 46,
|
|
65
|
+
MenuGameEndReturnToTitleScreenChallengeMultiplayer = 47,
|
|
66
|
+
MenuGameEndReturnToTitleScreenChallenge = 48,
|
|
67
|
+
MenuGameEndReturnToTitleScreenMultiplayer = 49,
|
|
68
|
+
MenuLoadGameDeleteSave = 50,
|
|
69
|
+
MenuLoadGameDeleteSaves = 51,
|
|
70
|
+
MenuLoadGameExportType = 52,
|
|
71
|
+
MenuLoadGameImportSaveFailure = 53,
|
|
72
|
+
MenuLoadGameMissingMod = 54,
|
|
73
|
+
MenuLoadGameOldBuildTime = 55,
|
|
74
|
+
MenuLoadGamePublishError = 56,
|
|
75
|
+
MenuMainWelcomeToVersion = 57,
|
|
76
|
+
MenuMainOldVersionWarning = 58,
|
|
77
|
+
MenuModsConfirmPublish = 59,
|
|
78
|
+
MenuModsConfirmPublishUpdate = 60,
|
|
79
|
+
MenuModsModEnableMultipleLanguages = 61,
|
|
80
|
+
MenuModsModEnableUseLanguage = 62,
|
|
81
|
+
MenuModsPublishedReminderRequiredModsOnWorkshop = 63,
|
|
82
|
+
MenuModsPublishError = 64,
|
|
83
|
+
MenuModsPublishUpdateError = 65,
|
|
84
|
+
MenuModsInfoMissingDependencies = 66,
|
|
85
|
+
MenuModsConfirmEnableDisabledDependencies = 67,
|
|
86
|
+
MenuModsConfirmDisableDependents = 68,
|
|
87
|
+
MenuModsConfirmUninstallMod = 69,
|
|
88
|
+
MenuModsUnloadableSaveGameMod = 70,
|
|
89
|
+
MenuModsSubmenuEditInternalModsModsListChangeReload = 71,
|
|
90
|
+
MenuMultiplayerCannotJoinFailedToLoadMods = 72,
|
|
91
|
+
MenuNewGameTooManySaves = 73,
|
|
92
|
+
MenuCustomGameOptionsConfirmImport = 74,
|
|
93
|
+
MenuCustomGameOptionsImportFailure = 75,
|
|
94
|
+
MenuMilestoneModifiersConfirmImport = 76,
|
|
95
|
+
MenuMilestoneModifiersImportFailure = 77,
|
|
96
|
+
MenuOptionsReloadGame = 78,
|
|
97
|
+
MenuOptionsChangeReload = 79,
|
|
98
|
+
MenuOptionsConfirmUnlockMilestones = 80,
|
|
99
|
+
MenuOptionsConfirmDiscoverActions = 81,
|
|
100
|
+
MenuOptionsConfirmUnlockRecipes = 82,
|
|
101
|
+
MenuOptionsSaveDataClearAll = 83,
|
|
102
|
+
MenuOptionsSaveDataClearCharacters = 84,
|
|
103
|
+
MenuOptionsSaveDataClearHighscores = 85,
|
|
104
|
+
MenuOptionsSaveDataClearMilestones = 86,
|
|
105
|
+
MenuOptionsSaveDataClearOptions = 87,
|
|
106
|
+
MenuOptionsSaveDataClearSaves = 88,
|
|
107
|
+
MenuOptionsSaveDataClearCraftingRecipes = 89,
|
|
108
|
+
MenuOptionsSaveDataClearBindings = 90,
|
|
109
|
+
MenuOptionsConfirmImportGlobalData = 91,
|
|
110
|
+
MenuPauseGhostKeepSave = 92,
|
|
111
|
+
MenuPauseReturnToTitleScreen = 93,
|
|
112
|
+
MenuPauseReturnToTitleScreenChallenge = 94,
|
|
113
|
+
MenuPauseReturnToTitleScreenChallengeMultiplayer = 95,
|
|
114
|
+
MenuPauseReturnToTitleScreenMultiplayer = 96,
|
|
115
|
+
MultiplayerFailedToConnect = 97,
|
|
116
|
+
MultiplayerRestartServerAfterLoadingSave = 98,
|
|
117
|
+
MultiplayerDisconnect = 99,
|
|
118
|
+
MultiplayerDisconnectRejoin = 100,
|
|
119
|
+
SteamworksURLOpenedInBrowser = 101,
|
|
120
|
+
SteamworksWorkshopOpenedInBrowser = 102,
|
|
121
|
+
SteamworksModWithNameAlreadyExists = 103,
|
|
122
|
+
SteamworksModImportSaveGameFailure = 104,
|
|
123
|
+
SteamworksModImportedSaveGame = 105,
|
|
124
|
+
SteamworksOpenFolderFailure = 106,
|
|
125
|
+
SteamworksModPublishModJsonUpdateFailed = 107,
|
|
126
|
+
SteamworksNotAvailableOnSteamDeck = 108,
|
|
127
|
+
UiSaveDrop = 109
|
|
129
128
|
}
|
|
130
129
|
export declare enum PromptType {
|
|
131
130
|
Info = 0,
|
|
@@ -32,7 +32,6 @@ export declare const promptGameConfirmationDestroyOnGather: import("game/meta/pr
|
|
|
32
32
|
export declare const promptGameConfirmationDroppingContainer: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
|
|
33
33
|
export declare const promptGameConfirmationRestWithEquippedFireSource: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[actionVerb: Text, objectName: Text, actionNoun: Text]>;
|
|
34
34
|
export declare const promptGameContainerNotFull: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
|
|
35
|
-
export declare const promptGameDangerousStep: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[objectName: Text]>;
|
|
36
35
|
export declare const promptGameDesalinationNoNeed: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
|
|
37
36
|
export declare const promptGameExtinguishWaterStill: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
|
|
38
37
|
export declare const promptGameItemMayBeDestroyedInCraft: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[breakingItemsList: Text]>;
|
|
@@ -24,6 +24,8 @@ import type { IOverlayInfo, ITerrainDescription, ITileContainer, ITileData } fro
|
|
|
24
24
|
import { TerrainType } from "game/tile/ITerrain";
|
|
25
25
|
import type TileEvent from "game/tile/TileEvent";
|
|
26
26
|
import { WorldZ } from "game/WorldZ";
|
|
27
|
+
import Message from "language/dictionary/Message";
|
|
28
|
+
import Translation from "language/Translation";
|
|
27
29
|
import FieldOfView from "renderer/fieldOfView/FieldOfView";
|
|
28
30
|
import type { IFieldOfViewOrigin } from "renderer/fieldOfView/IFieldOfView";
|
|
29
31
|
import { CanASeeBType } from "renderer/fieldOfView/IFieldOfView";
|
|
@@ -137,7 +139,10 @@ export default class Tile implements IVector4, Partial<ITileContainer>, IFieldOf
|
|
|
137
139
|
/**
|
|
138
140
|
* Checks if a tile is dangerous for a human
|
|
139
141
|
*/
|
|
140
|
-
isDangerous(human: Human):
|
|
142
|
+
isDangerous(human: Human): {
|
|
143
|
+
message: Message;
|
|
144
|
+
object: Translation;
|
|
145
|
+
} | false;
|
|
141
146
|
isPlayerOnTile(includeGhosts?: boolean, includeConnecting?: boolean): boolean;
|
|
142
147
|
getPlayersOnTile(includeGhosts?: boolean, includeConnecting?: boolean): Human[];
|
|
143
148
|
getPlayersThatSeeTile(): Human[];
|