@wayward/types 2.13.4-beta.dev.20230704.1 → 2.13.5-beta
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/LICENSE +20 -20
- package/README.md +27 -27
- package/definitions/game/game/IGame.d.ts +1 -1
- package/definitions/game/game/entity/EntityMovable.d.ts +9 -6
- package/definitions/game/game/entity/Human.d.ts +4 -4
- package/definitions/game/game/entity/IHuman.d.ts +6 -0
- package/definitions/game/game/entity/action/ActionsRegistration.d.ts +9 -9
- package/definitions/game/game/entity/action/actions/Dismount.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Drop.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Extinguish.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/InterruptResponse.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/Paddle.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/Rename.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Repair.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Rest.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Ride.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Sleep.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateItemQuickSlot.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/Upgrade.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UseItem.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/helper/GatherTreasure.d.ts +22 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsMain.d.ts +1 -1
- package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
- package/definitions/game/game/entity/action/usable/actions/item/UsableActionsItemMove.d.ts +9 -2
- package/definitions/game/game/entity/creature/Pathing.d.ts +30 -0
- package/definitions/game/game/entity/npc/NPC.d.ts +1 -1
- package/definitions/game/game/entity/npc/npcs/IMerchant.d.ts +12 -0
- package/definitions/game/game/entity/npc/npcs/Shipper.d.ts +1 -1
- package/definitions/game/game/entity/player/quest/Requirements.d.ts +4 -4
- package/definitions/game/game/entity/player/quest/requirement/BuildRequirement.d.ts +1 -1
- package/definitions/game/game/entity/player/quest/requirement/CollectItemRequirement.d.ts +1 -1
- package/definitions/game/game/entity/player/quest/requirement/CraftRequirement.d.ts +1 -1
- package/definitions/game/game/entity/player/quest/requirement/DismantleRequirement.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/creature/CreatureHealth.d.ts +17 -0
- package/definitions/game/game/inspection/infoProviders/creature/CreatureTamedInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/creature/Happiness.d.ts +22 -0
- package/definitions/game/game/inspection/infoProviders/item/ItemDetails.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/ItemUses.d.ts +74 -74
- package/definitions/game/game/inspection/infoProviders/item/use/ItemDisassembleInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/shared/SharedLightSourceInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/stat/AttackInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/stat/FerocityInfo.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/CorpseInspection.d.ts +1 -1
- package/definitions/game/game/item/IItem.d.ts +4 -0
- package/definitions/game/game/item/Item.d.ts +1 -2
- package/definitions/game/game/item/ItemManager.d.ts +8 -1
- package/definitions/game/game/magic/MagicalPropertyManager.d.ts +11 -0
- package/definitions/game/game/magic/MagicalPropertyType.d.ts +60 -0
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +1 -1
- package/definitions/game/game/reference/IReferenceManager.d.ts +1 -1
- package/definitions/game/game/reference/ReferenceManager.d.ts +3 -2
- package/definitions/game/game/tile/Tile.d.ts +2 -4
- package/definitions/game/language/Dictionary.d.ts +14 -13
- package/definitions/game/language/DictionaryMap.d.ts +29 -27
- package/definitions/game/language/dictionary/Misc.d.ts +4 -0
- package/definitions/game/language/dictionary/UiTranslation.d.ts +604 -600
- package/definitions/game/language/english/player/BadTemperatureLevels.d.ts +13 -0
- package/definitions/game/language/english/player/ExhaustionLevels.d.ts +13 -0
- package/definitions/game/language/english/player/Slot.d.ts +13 -0
- package/definitions/game/language/english/ui/ChangelogSections.d.ts +13 -0
- package/definitions/game/language/english/ui/PowerModes.d.ts +13 -0
- package/definitions/game/language/english/ui/SteamInputKeyboardPosition.d.ts +13 -0
- package/definitions/game/multiplayer/IMultiplayer.d.ts +22 -23
- package/definitions/game/multiplayer/Multiplayer.d.ts +5 -0
- package/definitions/game/multiplayer/packets/client/DisplayInterruptPacket.d.ts +19 -0
- package/definitions/game/multiplayer/packets/client/EmitPlayerEventPacket.d.ts +20 -0
- package/definitions/game/multiplayer/packets/client/SetPlayerZPacket.d.ts +16 -0
- package/definitions/game/multiplayer/packets/server/KeepAlivePacket.d.ts +21 -0
- package/definitions/game/multiplayer/packets/server/LogsPacket.d.ts +19 -0
- package/definitions/game/multiplayer/packets/server/UiDataUpdatePacket.d.ts +18 -0
- package/definitions/game/multiplayer/packets/server/UpdateDialogInfoPacket.d.ts +20 -0
- package/definitions/game/multiplayer/packets/server/UpdateQuickSlotInfoPacket.d.ts +20 -0
- package/definitions/game/multiplayer/packets/shared/MarkAsExploredPacket.d.ts +18 -0
- package/definitions/game/multiplayer/packets/shared/UpdateMovementIntentPacket.d.ts +18 -0
- package/definitions/game/multiplayer/packets/shared/UpdateWalkPathPacket.d.ts +20 -0
- package/definitions/game/renderer/context/RendererOrigin.d.ts +2 -9
- package/definitions/game/renderer/particle/Particle.d.ts +41 -0
- package/definitions/game/renderer/spriteBatch/SpriteBatch.d.ts +13 -0
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +6 -0
- package/definitions/game/ui/component/Article.d.ts +14 -0
- package/definitions/game/ui/component/Input.d.ts +6 -1
- package/definitions/game/ui/component/InputButton.d.ts +0 -1
- package/definitions/game/ui/input/BindableManager.d.ts +2 -2
- package/definitions/game/ui/input/IInput.d.ts +1 -1
- package/definitions/game/ui/old/functional/FunctionalTooltip.d.ts +11 -0
- package/definitions/game/ui/old/functional/IFunctionalTooltip.d.ts +37 -0
- package/definitions/game/ui/screen/screens/game/component/Item.d.ts +131 -0
- package/definitions/game/ui/screen/screens/game/component/ItemComponent.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/QuadrantComponent.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/IslandsDialog.d.ts +65 -0
- package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +7 -2
- package/definitions/game/ui/screen/screens/game/static/Quickslots.d.ts +20 -0
- package/definitions/game/ui/screen/screens/game/static/actions/ActionBarBindableManager.d.ts +5 -5
- package/definitions/game/ui/screen/screens/game/static/actions/IActionBar.d.ts +3 -1
- package/definitions/game/ui/screen/screens/game/static/stats/IStatDisplayDescription.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/static/stats/Reputation.d.ts +13 -0
- package/definitions/game/ui/screen/screens/menu/menus/HelpArticle.d.ts +16 -0
- package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/TabInventory.d.ts +15 -0
- package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/TabIsland.d.ts +15 -0
- package/definitions/game/ui/screen/screens/menu/menus/options/BindingsMenu.d.ts +23 -0
- package/definitions/game/ui/screen/screens/menu/menus/pause/ModesMenu.d.ts +22 -0
- package/definitions/game/utilities/collection/Arrays.d.ts +1 -0
- package/definitions/game/utilities/game/TileHelpers.d.ts +123 -0
- package/definitions/game/utilities/game/TilePosition.d.ts +12 -0
- package/definitions/game/utilities/math/IVector.d.ts +2 -1
- package/definitions/game/utilities/math/Math2.d.ts +6 -0
- package/definitions/game/utilities/random/generators/RandomItem.d.ts +26 -0
- package/definitions/game/utilities/random/generators/RandomRange.d.ts +26 -0
- package/definitions/hosts/shared/globals.d.ts +1 -1
- package/definitions/language-sync/language.d.ts +11 -0
- package/definitions/test/util/mochaNUnitReporter.d.ts +38 -0
- package/package.json +24 -24
- package/tsconfig.json +7 -7
- package/tsconfig.mod.base.json +45 -44
- /package/definitions/game/game/entity/action/actions/{PickUp.d.ts → Pickup.d.ts} +0 -0
- /package/definitions/game/game/entity/action/actions/{PickUpAllItems.d.ts → PickupAllItems.d.ts} +0 -0
- /package/definitions/game/game/entity/action/actions/{PickUpExcrement.d.ts → PickupExcrement.d.ts} +0 -0
- /package/definitions/game/game/entity/action/actions/{PickUpItem.d.ts → PickupItem.d.ts} +0 -0
|
@@ -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 { BadTemperatureLevel } from "game/entity/status/handler/IBadTemperature";
|
|
12
|
+
declare const badTemperatureLevels: Record<BadTemperatureLevel, string>;
|
|
13
|
+
export default badTemperatureLevels;
|
|
@@ -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 { ExhaustionLevel } from "game/entity/status/handler/IExhausted";
|
|
12
|
+
declare const exhaustionLevels: Record<ExhaustionLevel, string>;
|
|
13
|
+
export default exhaustionLevels;
|
|
@@ -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 { EquipType } from "game/entity/IHuman";
|
|
12
|
+
declare const slots: Descriptions<EquipType, string>;
|
|
13
|
+
export default slots;
|
|
@@ -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 { ChangelogSection } from "utilities/trello/ITrello";
|
|
12
|
+
declare const changelogSections: Descriptions<ChangelogSection, string>;
|
|
13
|
+
export default changelogSections;
|
|
@@ -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 { PowerMode } from "save/data/ISaveDataGlobal";
|
|
12
|
+
declare const powerModes: Descriptions<PowerMode, string>;
|
|
13
|
+
export default powerModes;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2023 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 { SteamInputKeyboardPosition } from "save/data/ISaveDataGlobal";
|
|
12
|
+
declare const steamInputKeyboardPositions: Descriptions<SteamInputKeyboardPosition, [string, string]>;
|
|
13
|
+
export default steamInputKeyboardPositions;
|
|
@@ -82,29 +82,28 @@ export declare enum MultiplayerSyncCheck {
|
|
|
82
82
|
PenaltyFieldHashCode = 42,
|
|
83
83
|
PlaceOnTile = 43,
|
|
84
84
|
PlayerManager = 44,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
WorldUpdateTile = 67
|
|
85
|
+
Players = 45,
|
|
86
|
+
PlayerSetup = 46,
|
|
87
|
+
Random = 47,
|
|
88
|
+
Reputation = 48,
|
|
89
|
+
Seed = 49,
|
|
90
|
+
SeededGenerator = 50,
|
|
91
|
+
SetPosition = 51,
|
|
92
|
+
SetZ = 52,
|
|
93
|
+
SkillGain = 53,
|
|
94
|
+
StaminaChanges = 54,
|
|
95
|
+
StatChange = 55,
|
|
96
|
+
Stats = 56,
|
|
97
|
+
StatusChange = 57,
|
|
98
|
+
StatusEffect = 58,
|
|
99
|
+
TemperatureManager = 59,
|
|
100
|
+
Temporary = 60,
|
|
101
|
+
Tick = 61,
|
|
102
|
+
TileEvent = 62,
|
|
103
|
+
Time = 63,
|
|
104
|
+
UpdateDirection = 64,
|
|
105
|
+
Weight = 65,
|
|
106
|
+
WorldUpdateTile = 66
|
|
108
107
|
}
|
|
109
108
|
export declare const maxPlayers = 32;
|
|
110
109
|
export declare const packetTickRate = 16;
|
|
@@ -71,6 +71,7 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
|
|
|
71
71
|
isProcessingPacket(): boolean;
|
|
72
72
|
isServer(): boolean;
|
|
73
73
|
isClient(): boolean;
|
|
74
|
+
get areSyncChecksSuppressed(): boolean;
|
|
74
75
|
getPlayerIdentifier(): string;
|
|
75
76
|
setPlayerIdentifier(identifier: string): void;
|
|
76
77
|
getOptions(): IMultiplayerOptions;
|
|
@@ -165,6 +166,10 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
|
|
|
165
166
|
getServerMods(): IServerMod[];
|
|
166
167
|
updateGlobalServerDirectory(): void;
|
|
167
168
|
checkConnection(): Promise<void>;
|
|
169
|
+
/**
|
|
170
|
+
* Checks if a sync check is active and enabled.
|
|
171
|
+
* Active means there's a current sync check being recorded
|
|
172
|
+
*/
|
|
168
173
|
isSyncCheckEnabled(syncCheck: MultiplayerSyncCheck): boolean;
|
|
169
174
|
addSyncCheck(syncCheck: MultiplayerSyncCheck, value: any, addStackTrace?: boolean): void;
|
|
170
175
|
addSyncCheckWithSeed(island: Island, syncCheck: MultiplayerSyncCheck, ...messages: any[]): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 type { Prompt } from "game/meta/prompt/IPrompt";
|
|
12
|
+
import ClientPacket from "multiplayer/packets/ClientPacket";
|
|
13
|
+
export default class DisplayInterruptPacket extends ClientPacket {
|
|
14
|
+
prompt: Prompt;
|
|
15
|
+
args: any[];
|
|
16
|
+
extraData: any;
|
|
17
|
+
getDebugInfo(): string;
|
|
18
|
+
process(): Promise<void>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 PlayerTargetedClientPacket from "multiplayer/packets/PlayerTargetedClientPacket";
|
|
12
|
+
export declare enum EmitPlayerEventType {
|
|
13
|
+
NoInput = 0,
|
|
14
|
+
MovementComplete = 1
|
|
15
|
+
}
|
|
16
|
+
export default class EmitPlayerEventPacket extends PlayerTargetedClientPacket {
|
|
17
|
+
type: EmitPlayerEventType;
|
|
18
|
+
getDebugInfo(): string;
|
|
19
|
+
process(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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 PlayerTargetedClientPacket from "multiplayer/packets/PlayerTargetedClientPacket";
|
|
12
|
+
export default class SetPlayerZPacket extends PlayerTargetedClientPacket {
|
|
13
|
+
z: number;
|
|
14
|
+
getDebugInfo(): string;
|
|
15
|
+
process(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 ServerPacket from "multiplayer/packets/ServerPacket";
|
|
12
|
+
/**
|
|
13
|
+
* The player sends this to the server every 5 seconds
|
|
14
|
+
* If the server hasn't received this message for 15 seconds, the player is disconnected
|
|
15
|
+
*/
|
|
16
|
+
export default class KeepAlivePacket extends ServerPacket {
|
|
17
|
+
getDebugInfo(): string;
|
|
18
|
+
isSyncCheckEnabled(): boolean;
|
|
19
|
+
isAllowedWhenPaused(): boolean;
|
|
20
|
+
process(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 PlayerTargetedServerPacket from "multiplayer/packets/PlayerTargetedServerPacket";
|
|
12
|
+
export default class LogsPacket extends PlayerTargetedServerPacket {
|
|
13
|
+
logs: string;
|
|
14
|
+
containsServerGameState: boolean | undefined;
|
|
15
|
+
getDebugInfo(): string;
|
|
16
|
+
isSyncCheckEnabled(): boolean;
|
|
17
|
+
isAllowedWhenPaused(): boolean;
|
|
18
|
+
process(): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 type Player from "game/entity/player/Player";
|
|
12
|
+
import PlayerTargetedServerPacket from "multiplayer/packets/PlayerTargetedServerPacket";
|
|
13
|
+
export default class UiDataUpdatePacket extends PlayerTargetedServerPacket {
|
|
14
|
+
static create(player: Player, updates: Map<string | number, Record<string, any>>): UiDataUpdatePacket;
|
|
15
|
+
updates: Map<string | number, Record<string, any>>;
|
|
16
|
+
getDebugInfo(): string;
|
|
17
|
+
process(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 PlayerTargetedServerPacket from "multiplayer/packets/PlayerTargetedServerPacket";
|
|
12
|
+
import type { IDialogInfo } from "ui/old/IOldUi";
|
|
13
|
+
export default class UpdateDialogInfoPacket extends PlayerTargetedServerPacket {
|
|
14
|
+
index: string | number;
|
|
15
|
+
info: IDialogInfo;
|
|
16
|
+
getDebugInfo(): string;
|
|
17
|
+
isSyncCheckEnabled(): boolean;
|
|
18
|
+
isAllowedWhenPaused(): boolean;
|
|
19
|
+
process(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 PlayerTargetedServerPacket from "multiplayer/packets/PlayerTargetedServerPacket";
|
|
12
|
+
import type { IQuickSlotInfo } from "ui/old/IOldUi";
|
|
13
|
+
export default class UpdateQuickSlotInfoPacket extends PlayerTargetedServerPacket {
|
|
14
|
+
quickSlot: number;
|
|
15
|
+
quickSlotInfo: IQuickSlotInfo | undefined;
|
|
16
|
+
getDebugInfo(): string;
|
|
17
|
+
isSyncCheckEnabled(): boolean;
|
|
18
|
+
isAllowedWhenPaused(): boolean;
|
|
19
|
+
process(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 PlayerTargetedSharedPacket from "multiplayer/packets/PlayerTargetedSharedPacket";
|
|
12
|
+
import type { IVector2 } from "utilities/math/IVector";
|
|
13
|
+
export default class MarkAsExploredPacket extends PlayerTargetedSharedPacket {
|
|
14
|
+
points: IVector2[];
|
|
15
|
+
getDebugInfo(): string;
|
|
16
|
+
isSyncCheckEnabled(): boolean;
|
|
17
|
+
process(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 type { IMovementIntent } from "game/entity/player/IPlayer";
|
|
12
|
+
import PlayerTargetedSharedPacket from "multiplayer/packets/PlayerTargetedSharedPacket";
|
|
13
|
+
export default class UpdateMovementIntentPacket extends PlayerTargetedSharedPacket {
|
|
14
|
+
intent: IMovementIntent;
|
|
15
|
+
getDebugInfo(): string;
|
|
16
|
+
isAllowedWhenPaused(): boolean;
|
|
17
|
+
process(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 PlayerTargetedSharedPacket from "multiplayer/packets/PlayerTargetedSharedPacket";
|
|
12
|
+
import type { IVector2 } from "utilities/math/IVector";
|
|
13
|
+
export default class UpdateWalkPathPacket extends PlayerTargetedSharedPacket {
|
|
14
|
+
path: IVector2[] | undefined;
|
|
15
|
+
force: boolean | undefined;
|
|
16
|
+
getDebugInfo(): string;
|
|
17
|
+
isSyncCheckEnabled(): boolean;
|
|
18
|
+
isAllowedWhenPaused(): boolean;
|
|
19
|
+
process(): void;
|
|
20
|
+
}
|
|
@@ -16,7 +16,6 @@ import type { IslandId } from "game/island/IIsland";
|
|
|
16
16
|
import type Island from "game/island/Island";
|
|
17
17
|
import FieldOfView from "renderer/fieldOfView/FieldOfView";
|
|
18
18
|
import type { CanASeeBType, IFieldOfViewOrigin } from "renderer/fieldOfView/IFieldOfView";
|
|
19
|
-
import type { IVector4 } from "utilities/math/Vector4";
|
|
20
19
|
export interface IRendererOrigin extends IFieldOfViewOrigin {
|
|
21
20
|
readonly fromX?: number;
|
|
22
21
|
readonly fromY?: number;
|
|
@@ -24,10 +23,7 @@ export interface IRendererOrigin extends IFieldOfViewOrigin {
|
|
|
24
23
|
readonly asEntity: Entity;
|
|
25
24
|
readonly asPlayer: Player | undefined;
|
|
26
25
|
readonly asHuman: Human | undefined;
|
|
27
|
-
canSeeObject(type: CanASeeBType, object:
|
|
28
|
-
fromX: number;
|
|
29
|
-
fromY: number;
|
|
30
|
-
}, fieldOfView: FieldOfView | undefined): boolean;
|
|
26
|
+
canSeeObject(type: CanASeeBType, object: IRendererOrigin, fieldOfView: FieldOfView | undefined): boolean;
|
|
31
27
|
canSeePosition(type: CanASeeBType, islandId: IslandId, x: number, y: number, z: number, fieldOfView: FieldOfView | undefined): boolean;
|
|
32
28
|
getMovementProgress(timeStamp: number): number;
|
|
33
29
|
}
|
|
@@ -46,9 +42,6 @@ export declare class RendererOrigin implements IRendererOrigin {
|
|
|
46
42
|
constructor(islandId: IslandId, x: number, y: number, z: number);
|
|
47
43
|
get island(): Island;
|
|
48
44
|
getMovementProgress(_timeStamp: number): number;
|
|
49
|
-
canSeeObject(type: CanASeeBType, object:
|
|
50
|
-
fromX: number;
|
|
51
|
-
fromY: number;
|
|
52
|
-
}, fieldOfView: FieldOfView | undefined): boolean;
|
|
45
|
+
canSeeObject(type: CanASeeBType, object: IRendererOrigin, fieldOfView: FieldOfView | undefined): boolean;
|
|
53
46
|
canSeePosition(type: CanASeeBType, islandId: IslandId, x: number, y: number, z: number, fieldOfView: FieldOfView | undefined): boolean;
|
|
54
47
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 type Island from "game/island/Island";
|
|
12
|
+
import type RendererContext from "renderer/context/RendererContext";
|
|
13
|
+
import type WebGlContext from "renderer/WebGlContext";
|
|
14
|
+
import type WorldRenderer from "renderer/world/WorldRenderer";
|
|
15
|
+
import type { IRGB } from "utilities/Color";
|
|
16
|
+
export default class Particle {
|
|
17
|
+
private readonly context;
|
|
18
|
+
private readonly worldRenderer;
|
|
19
|
+
private readonly shaderProgram;
|
|
20
|
+
private readonly capacity;
|
|
21
|
+
private readonly positionSizeBuffer;
|
|
22
|
+
private readonly colorBuffer;
|
|
23
|
+
private readonly particles;
|
|
24
|
+
private readonly positionSizeData;
|
|
25
|
+
private readonly colorData;
|
|
26
|
+
private readonly particleSize;
|
|
27
|
+
private readonly vertexArray;
|
|
28
|
+
private count;
|
|
29
|
+
private lastUsedParticle;
|
|
30
|
+
private nextUpdate;
|
|
31
|
+
static initializePrograms(webGlContext: WebGlContext): Promise<void>;
|
|
32
|
+
constructor(context: RendererContext, worldRenderer: WorldRenderer, maxParticles?: number);
|
|
33
|
+
delete(): void;
|
|
34
|
+
create(island: Island, tileX: number, tileY: number, tileZ: number, particle: IRGB): void;
|
|
35
|
+
createMultiple(island: Island, tileX: number, tileY: number, tileZ: number, particle: IRGB, count: number, intensity?: number): void;
|
|
36
|
+
clear(): void;
|
|
37
|
+
update(timeStamp: number): void;
|
|
38
|
+
render(x: number, y: number): boolean;
|
|
39
|
+
private findUnusedParticle;
|
|
40
|
+
private spawn;
|
|
41
|
+
}
|
|
@@ -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 type RendererContext from "renderer/context/RendererContext";
|
|
12
|
+
import type ISpriteBatch from "renderer/spriteBatch/ISpriteBatch";
|
|
13
|
+
export declare function createSpriteBatch(context: RendererContext, capacity: number, depthOffset?: number, yOffset?: number): ISpriteBatch;
|
|
@@ -63,6 +63,7 @@ export interface IOptions {
|
|
|
63
63
|
shouldLoadLastSave: boolean;
|
|
64
64
|
shouldObjectNamesSkipArticle: boolean;
|
|
65
65
|
skipSplash: boolean;
|
|
66
|
+
steamInputKeyboardPosition: SteamInputKeyboardPosition;
|
|
66
67
|
tooltipDelay: number;
|
|
67
68
|
tooltips: Record<InspectType, boolean | undefined>;
|
|
68
69
|
tooltipVisibility?: TooltipVisibilityOption;
|
|
@@ -95,6 +96,11 @@ export declare enum MusicPlaylist {
|
|
|
95
96
|
Shuffle = 1,
|
|
96
97
|
Dynamic = 2
|
|
97
98
|
}
|
|
99
|
+
export declare enum SteamInputKeyboardPosition {
|
|
100
|
+
Dynamic = 0,
|
|
101
|
+
Top = 1,
|
|
102
|
+
Bottom = 2
|
|
103
|
+
}
|
|
98
104
|
export declare enum TooltipVisibilityOption {
|
|
99
105
|
HiddenUnlessBind = 0,
|
|
100
106
|
ShowMoreInformationWithBind = 1,
|
|
@@ -0,0 +1,14 @@
|
|
|
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 Component from "ui/component/Component";
|
|
12
|
+
export declare class Article extends Component {
|
|
13
|
+
constructor();
|
|
14
|
+
}
|
|
@@ -53,6 +53,7 @@ export default class Input extends Component implements IRefreshable {
|
|
|
53
53
|
private shouldSelectOnFocus;
|
|
54
54
|
private shouldSelectOnNextMouseUp;
|
|
55
55
|
private debounce;
|
|
56
|
+
private isFocusing?;
|
|
56
57
|
get changed(): boolean;
|
|
57
58
|
protected readonly input: Component;
|
|
58
59
|
private readonly wrapperButtons;
|
|
@@ -90,7 +91,11 @@ export default class Input extends Component implements IRefreshable {
|
|
|
90
91
|
* @param clearType `ClearType.UseDefault` to force using default, `ClearType.NotDefault` to prevent using default, `ClearType.Auto` otherwise. Defaults to `ClearType.Auto`
|
|
91
92
|
*/
|
|
92
93
|
clear(clearType?: ClearType): this;
|
|
93
|
-
focus(): void;
|
|
94
|
+
focus(openSteamInputKeyboard?: boolean): void;
|
|
95
|
+
/**
|
|
96
|
+
* Open the steam input keyboard when clicking on an already focused input
|
|
97
|
+
*/
|
|
98
|
+
private click;
|
|
94
99
|
private emitEnterBindOn;
|
|
95
100
|
setEmitEnterBindOn(on: "blur" | "keydown"): this;
|
|
96
101
|
private shouldIgnoreShiftEnter;
|
|
@@ -25,7 +25,6 @@ export default class InputButton extends Button {
|
|
|
25
25
|
constructor(inputInitializer?: (input: Input) => any);
|
|
26
26
|
getInputText(): string;
|
|
27
27
|
setInputText(text: string): void;
|
|
28
|
-
focusInput(): void;
|
|
29
28
|
configureInput(initializer: (input: Input) => any): this;
|
|
30
29
|
protected onStopEditMode(): void;
|
|
31
30
|
private onInputChange;
|
|
@@ -26,9 +26,9 @@ export default abstract class BindableManager {
|
|
|
26
26
|
private static BINDABLES;
|
|
27
27
|
private static BINDABLES_BY_VALUE;
|
|
28
28
|
private static needsUpdate;
|
|
29
|
-
static getNames(): readonly ("None" | "GameMoveDirection" | "GameMoveUp" | "GameMoveLeft" | "GameMoveDown" | "GameMoveRight" | "GameMoveToTile" | "GameMoveToTilePreview" | "GameMoveToTileCancel" | "GameFaceDirection" | "GameFaceUp" | "GameFaceLeft" | "GameFaceDown" | "GameFaceRight" | "GameIdle" | "GameItemMove" | "GameItemMoveAll" | "GameItemMoveAllByQuality" | "GameItemMenu" | "GameItemQuickMove" | "GameItemQuickMoveAll" | "GameItemQuickMoveAllByQuality" | "GameItemDrop" | "GameItemDropAll" | "GameItemDropAllByQuality" | "GameItemEquipToggle" | "GameItemProtectToggle" | "GameItemOpen" | "GameInspect" | "GameInspectItem" | "GameZoomIn" | "GameZoomOut" | "
|
|
29
|
+
static getNames(): readonly ("None" | "GamePause" | "GameMoveDirection" | "GameMoveUp" | "GameMoveLeft" | "GameMoveDown" | "GameMoveRight" | "GameMoveToTile" | "GameMoveToTilePreview" | "GameMoveToTileCancel" | "GameFaceDirection" | "GameFaceUp" | "GameFaceLeft" | "GameFaceDown" | "GameFaceRight" | "GameIdle" | "GameItemMove" | "GameItemMoveAll" | "GameItemMoveAllByQuality" | "GameItemMenu" | "GameItemQuickMove" | "GameItemQuickMoveAll" | "GameItemQuickMoveAllByQuality" | "GameItemDrop" | "GameItemDropAll" | "GameItemDropAllByQuality" | "GameItemEquipToggle" | "GameItemProtectToggle" | "GameItemOpen" | "GameInspect" | "GameInspectItem" | "GameZoomIn" | "GameZoomOut" | "GameSave" | "GameFullscreen" | "GameScreenshotMode" | "GameActionBarConfigure" | "GameActionBarUseSlottedItem" | "GameActionBarCopy" | "GameActionBarToggleUseWhenMoving" | "GameActionBarClear" | "GameActions" | "GameActionsItems" | "GameActionEquip" | "GameActionEquipLeft" | "GameActionEquipRight" | "GameActionUnequip" | "GameActionCloseContainer" | "GameActionOpenContainer" | "GameActionButcher" | "GameActionHarvest" | "GameActionChop" | "GameActionMine" | "GameActionMelee" | "GameActionGatherLiquid" | "GameActionAttachContainer" | "GameActionDetachContainer" | "GameActionPour" | "GameActionPourOnYourself" | "GameActionDrink" | "GameActionBuild" | "GameActionCraft" | "GameActionDisassemble" | "GameActionDismantle" | "GameActionOffer" | "GameActionRepair" | "GameActionThrow" | "GameActionRename" | "GameActionStartFire" | "GameActionExtinguish" | "GameActionDrop" | "GameActionDropAll" | "GameActionDropAllOfSameQuality" | "GameActionDig" | "GameActionTill" | "GameActionPackGround" | "GameActionEat" | "GameActionCast" | "GameActionRest" | "GameActionSleep" | "GameActionCure" | "GameActionLockpick" | "GameActionUseVehicle" | "GameActionDismount" | "GameActionGrasp" | "GameActionAbsorb" | "GameActionExude" | "GameActionIgnite" | "GameActionSetDown" | "GameActionRubClockwise" | "GameActionRubCounterclockwise" | "GameActionRead" | "GameActionLearn" | "GameActionOpenBottle" | "GameActionSqueeze" | "GameActionGatherWithHands" | "GameActionHarvestWithHands" | "GameActionDigWithHands" | "GameActionTillWithHands" | "GameActionPickUpExcrementWithHands" | "GameActionCageCreature" | "GameActionPickUpItem" | "GameActionPickUpAllItems" | "GameActionPickUpDoodad" | "GameActionTame" | "GameActionRelease" | "GameActionUncage" | "GameActionPet" | "GameActionHitch" | "GameActionUnhitch" | "GameActionToggleHitch" | "GameActionCommandCreature" | "GameActionCreatureFollowCloseAi" | "GameActionCreatureFollowFarAi" | "GameActionCreatureStayAi" | "GameActionCreatureDefendAi" | "GameActionCreatureAttackAi" | "GameActionJump" | "GameActionAttack" | "GameActionPlant" | "GameActionPlaceDown" | "GameActionTrade" | "GameActionShipToIsland" | "GameActionShoot" | "GameActionFire" | "GameActionProtect" | "GameActionUnprotect" | "GameActionSmotherFire" | "GameActionStokeFire" | "GameActionHeal" | "GameActionHealOther" | "GameActionTestDepth" | "GameActionReadMap" | "GameActionPreserve" | "GameActionReinforce" | "GameActionTellTime" | "GameActionEnchant" | "GameActionSailToCivilization" | "GameActionTeleport" | "GameActionDrawMap" | "GameActionApply" | "GameActionRefine" | "GameActionTransmogrify" | "GameActionNavigate" | "GameActionUpgrade" | "GameActionEnhance" | "GameActionAlter" | "GameActionSummon" | "GameActionExudeWithItem" | "GameActionAbsorbWithItem" | "GameActionIgniteWithItem" | "GameActionAddFuelWithItem" | "GameActionPreserveWithItem" | "GameActionRefineWithItem" | "GameActionAlterWithItem" | "GameActionUpgradeWithItem" | "GameActionTransmogrifyWithItem" | "GameActionEnchantWithItem" | "GameActionEnhanceWithItem" | "GameActionReinforceWithItem" | "GameActionRepairWithItem" | "GameActionItemMove" | "GameActionItemMoveAll" | "GameActionItemMoveAllOfSameQuality" | "GameActionItemMoveToInventory" | "GameActionTradeBuyFromTrader" | "GameActionTradeSellToTrader" | "GameActionItemMoveToActiveContainer" | "GameActionItemMoveToFacingContainer" | "GameActionOpenDoor" | "GameActionCloseDoor" | "DialogCloseAll" | "DialogOptions" | "DialogHelp" | "DialogMilestones" | "DialogNotes" | "DialogMessages" | "DialogMessagesChatFocus" | "DialogInventory" | "DialogCrafting" | "DialogDismantle" | "DialogEquipment" | "DialogSkills" | "DialogQuests" | "DialogIslands" | "MenuEnter" | "MenuSubmit" | "MenuNext" | "MenuPrevious" | "MenuUp" | "MenuDown" | "MenuLeft" | "MenuRight" | "MenuCancel" | "MenuNextOption" | "MenuMoreInformation" | "MenuPreviousOption" | "MenuContextMenu" | "MenuSelect" | "DeveloperToggleDeveloperMode" | "DeveloperToggleDeveloperTools" | "DeveloperReloadGame" | "DeveloperReloadAndContinueGame" | "DeveloperReloadStylesheets" | "DeveloperReloadVariableUIImages")[];
|
|
30
30
|
static getAll(): readonly Bindable[];
|
|
31
|
-
static getName(bindable: Bindable): "None" | "GameMoveDirection" | "GameMoveUp" | "GameMoveLeft" | "GameMoveDown" | "GameMoveRight" | "GameMoveToTile" | "GameMoveToTilePreview" | "GameMoveToTileCancel" | "GameFaceDirection" | "GameFaceUp" | "GameFaceLeft" | "GameFaceDown" | "GameFaceRight" | "GameIdle" | "GameItemMove" | "GameItemMoveAll" | "GameItemMoveAllByQuality" | "GameItemMenu" | "GameItemQuickMove" | "GameItemQuickMoveAll" | "GameItemQuickMoveAllByQuality" | "GameItemDrop" | "GameItemDropAll" | "GameItemDropAllByQuality" | "GameItemEquipToggle" | "GameItemProtectToggle" | "GameItemOpen" | "GameInspect" | "GameInspectItem" | "GameZoomIn" | "GameZoomOut" | "
|
|
31
|
+
static getName(bindable: Bindable): "None" | "GamePause" | "GameMoveDirection" | "GameMoveUp" | "GameMoveLeft" | "GameMoveDown" | "GameMoveRight" | "GameMoveToTile" | "GameMoveToTilePreview" | "GameMoveToTileCancel" | "GameFaceDirection" | "GameFaceUp" | "GameFaceLeft" | "GameFaceDown" | "GameFaceRight" | "GameIdle" | "GameItemMove" | "GameItemMoveAll" | "GameItemMoveAllByQuality" | "GameItemMenu" | "GameItemQuickMove" | "GameItemQuickMoveAll" | "GameItemQuickMoveAllByQuality" | "GameItemDrop" | "GameItemDropAll" | "GameItemDropAllByQuality" | "GameItemEquipToggle" | "GameItemProtectToggle" | "GameItemOpen" | "GameInspect" | "GameInspectItem" | "GameZoomIn" | "GameZoomOut" | "GameSave" | "GameFullscreen" | "GameScreenshotMode" | "GameActionBarConfigure" | "GameActionBarUseSlottedItem" | "GameActionBarCopy" | "GameActionBarToggleUseWhenMoving" | "GameActionBarClear" | "GameActions" | "GameActionsItems" | "GameActionEquip" | "GameActionEquipLeft" | "GameActionEquipRight" | "GameActionUnequip" | "GameActionCloseContainer" | "GameActionOpenContainer" | "GameActionButcher" | "GameActionHarvest" | "GameActionChop" | "GameActionMine" | "GameActionMelee" | "GameActionGatherLiquid" | "GameActionAttachContainer" | "GameActionDetachContainer" | "GameActionPour" | "GameActionPourOnYourself" | "GameActionDrink" | "GameActionBuild" | "GameActionCraft" | "GameActionDisassemble" | "GameActionDismantle" | "GameActionOffer" | "GameActionRepair" | "GameActionThrow" | "GameActionRename" | "GameActionStartFire" | "GameActionExtinguish" | "GameActionDrop" | "GameActionDropAll" | "GameActionDropAllOfSameQuality" | "GameActionDig" | "GameActionTill" | "GameActionPackGround" | "GameActionEat" | "GameActionCast" | "GameActionRest" | "GameActionSleep" | "GameActionCure" | "GameActionLockpick" | "GameActionUseVehicle" | "GameActionDismount" | "GameActionGrasp" | "GameActionAbsorb" | "GameActionExude" | "GameActionIgnite" | "GameActionSetDown" | "GameActionRubClockwise" | "GameActionRubCounterclockwise" | "GameActionRead" | "GameActionLearn" | "GameActionOpenBottle" | "GameActionSqueeze" | "GameActionGatherWithHands" | "GameActionHarvestWithHands" | "GameActionDigWithHands" | "GameActionTillWithHands" | "GameActionPickUpExcrementWithHands" | "GameActionCageCreature" | "GameActionPickUpItem" | "GameActionPickUpAllItems" | "GameActionPickUpDoodad" | "GameActionTame" | "GameActionRelease" | "GameActionUncage" | "GameActionPet" | "GameActionHitch" | "GameActionUnhitch" | "GameActionToggleHitch" | "GameActionCommandCreature" | "GameActionCreatureFollowCloseAi" | "GameActionCreatureFollowFarAi" | "GameActionCreatureStayAi" | "GameActionCreatureDefendAi" | "GameActionCreatureAttackAi" | "GameActionJump" | "GameActionAttack" | "GameActionPlant" | "GameActionPlaceDown" | "GameActionTrade" | "GameActionShipToIsland" | "GameActionShoot" | "GameActionFire" | "GameActionProtect" | "GameActionUnprotect" | "GameActionSmotherFire" | "GameActionStokeFire" | "GameActionHeal" | "GameActionHealOther" | "GameActionTestDepth" | "GameActionReadMap" | "GameActionPreserve" | "GameActionReinforce" | "GameActionTellTime" | "GameActionEnchant" | "GameActionSailToCivilization" | "GameActionTeleport" | "GameActionDrawMap" | "GameActionApply" | "GameActionRefine" | "GameActionTransmogrify" | "GameActionNavigate" | "GameActionUpgrade" | "GameActionEnhance" | "GameActionAlter" | "GameActionSummon" | "GameActionExudeWithItem" | "GameActionAbsorbWithItem" | "GameActionIgniteWithItem" | "GameActionAddFuelWithItem" | "GameActionPreserveWithItem" | "GameActionRefineWithItem" | "GameActionAlterWithItem" | "GameActionUpgradeWithItem" | "GameActionTransmogrifyWithItem" | "GameActionEnchantWithItem" | "GameActionEnhanceWithItem" | "GameActionReinforceWithItem" | "GameActionRepairWithItem" | "GameActionItemMove" | "GameActionItemMoveAll" | "GameActionItemMoveAllOfSameQuality" | "GameActionItemMoveToInventory" | "GameActionTradeBuyFromTrader" | "GameActionTradeSellToTrader" | "GameActionItemMoveToActiveContainer" | "GameActionItemMoveToFacingContainer" | "GameActionOpenDoor" | "GameActionCloseDoor" | "DialogCloseAll" | "DialogOptions" | "DialogHelp" | "DialogMilestones" | "DialogNotes" | "DialogMessages" | "DialogMessagesChatFocus" | "DialogInventory" | "DialogCrafting" | "DialogDismantle" | "DialogEquipment" | "DialogSkills" | "DialogQuests" | "DialogIslands" | "MenuEnter" | "MenuSubmit" | "MenuNext" | "MenuPrevious" | "MenuUp" | "MenuDown" | "MenuLeft" | "MenuRight" | "MenuCancel" | "MenuNextOption" | "MenuMoreInformation" | "MenuPreviousOption" | "MenuContextMenu" | "MenuSelect" | "DeveloperToggleDeveloperMode" | "DeveloperToggleDeveloperTools" | "DeveloperReloadGame" | "DeveloperReloadAndContinueGame" | "DeveloperReloadStylesheets" | "DeveloperReloadVariableUIImages" | undefined;
|
|
32
32
|
static get(name: keyof typeof Bindable): Bindable | undefined;
|
|
33
33
|
static getDefaultBindings(bindable: Bindable): Binding[] | undefined;
|
|
34
34
|
static getTranslation(bindable: Bindable, which?: BindableTranslation): Translation;
|
|
@@ -68,7 +68,7 @@ export interface IInput {
|
|
|
68
68
|
export declare module IInput {
|
|
69
69
|
function is(value: unknown): value is IInput;
|
|
70
70
|
function create<K extends keyof typeof InputCatalystType, C extends (typeof InputCatalystType)[K]>(type: K, catalyst: IInputCatalystValueMap[C], ...modifiers: Modifier[]): IInput;
|
|
71
|
-
function get(catalyst: InputCatalyst, modifiers
|
|
71
|
+
function get(catalyst: InputCatalyst, modifiers?: Set<"Shift" | "Alt" | "Ctrl">): IInput;
|
|
72
72
|
function key(which: IInputCatalystValueMap[InputCatalystType.Key], ...modifiers: Modifier[]): IInput;
|
|
73
73
|
function mouseButton(which: IInputCatalystValueMap[InputCatalystType.MouseButton], ...modifiers: Modifier[]): IInput;
|
|
74
74
|
function touch(which: IInputCatalystValueMap[InputCatalystType.Touch], ...modifiers: Modifier[]): IInput;
|
|
@@ -0,0 +1,11 @@
|
|
|
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 {};
|