@wayward/types 2.15.1-beta.dev.20251027.1 → 2.15.2-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/.github/workflows/main.yml +7 -6
- package/definitions/game/Init.d.ts +2 -1
- package/definitions/game/Uninit.d.ts +2 -1
- package/definitions/game/game/IGame.d.ts +9 -2
- package/definitions/game/game/biome/template/Template.d.ts +1 -1
- package/definitions/game/game/curse/Curse.d.ts +8 -2
- package/definitions/game/game/curse/CurseEvent.d.ts +8 -0
- package/definitions/game/game/doodad/Doodad.d.ts +3 -2
- package/definitions/game/game/doodad/IDoodad.d.ts +6 -2
- package/definitions/game/game/entity/Human.d.ts +6 -1
- package/definitions/game/game/entity/IEntity.d.ts +1 -0
- package/definitions/game/game/entity/action/IAction.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Apply.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Attack.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Chop.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CloseContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CloseDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Consecrate.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Cure.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dismount.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DrinkItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Eat.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/EquipFromArmorStand.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Heal.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Hitch.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Melee.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Mine.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Move.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/OpenContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/OpenDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PackGround.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PlaceDown.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PropOpenDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ProtectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/RemovePlayer.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/Ride.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SetCreatureAiAll.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Sleep.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/StartFire.d.ts +0 -2
- package/definitions/game/game/entity/action/actions/TakeFromArmorStand.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Throw.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Till.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Uncage.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Unhitch.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UnprotectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateDirection.d.ts +1 -3
- package/definitions/game/game/entity/action/actions/Upgrade.d.ts +1 -1
- package/definitions/game/game/entity/action/usable/UsableActionType.d.ts +7 -4
- package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
- package/definitions/game/game/entity/player/PlayerManager.d.ts +2 -1
- package/definitions/game/game/island/Island.d.ts +17 -4
- package/definitions/game/game/island/automation/Automation.d.ts +1 -0
- package/definitions/game/game/island/automation/IAutomation.d.ts +21 -0
- package/definitions/game/game/item/IItem.d.ts +13 -22
- package/definitions/game/game/item/Item.d.ts +6 -5
- package/definitions/game/game/item/ItemManager.d.ts +3 -3
- package/definitions/game/game/item/Items.d.ts +1 -9
- package/definitions/game/game/item/runes/RuneEffects.d.ts +58 -0
- package/definitions/game/game/magic/IMagicalProperty.d.ts +2 -0
- package/definitions/game/game/magic/MagicalPropertyDescriptions.d.ts +1 -0
- package/definitions/game/game/magic/MagicalPropertyManager.d.ts +4 -4
- package/definitions/game/game/meta/prompt/IPrompt.d.ts +62 -60
- package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +2 -0
- package/definitions/game/game/milestones/milestone/Runekeeper.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Afflicted.d.ts +6 -0
- package/definitions/game/game/reference/IReferenceManager.d.ts +3 -0
- package/definitions/game/language/DictionaryMap.d.ts +12 -0
- package/definitions/game/language/dictionary/Message.d.ts +838 -837
- package/definitions/game/language/dictionary/UiTranslation.d.ts +668 -662
- package/definitions/game/language/english/item/ItemAffixes.d.ts +1 -1
- package/definitions/game/mod/Mod.d.ts +48 -10
- package/definitions/game/mod/ModRegistry.d.ts +2 -2
- package/definitions/game/multiplayer/IMultiplayer.d.ts +7 -2
- package/definitions/game/multiplayer/Multiplayer.d.ts +8 -3
- package/definitions/game/multiplayer/matchmaking/IMatchmaking.d.ts +2 -0
- package/definitions/game/multiplayer/networking/SmartConnection.d.ts +2 -1
- package/definitions/game/multiplayer/networking/SteamNetworkConnection.d.ts +2 -1
- package/definitions/game/multiplayer/networking/WebRTCConnection.d.ts +4 -1
- package/definitions/game/multiplayer/networking/WebSocketConnection.d.ts +2 -1
- package/definitions/game/multiplayer/networking/WebWorkerConnection.d.ts +2 -1
- package/definitions/game/renderer/overlay/EffectRadiusOverlay.d.ts +3 -0
- package/definitions/game/save/data/SaveDataGlobal.d.ts +0 -1
- package/definitions/game/save/upgrade/UpgradeVersionRegistry.d.ts +1 -1
- package/definitions/game/save/upgrade/versions/beta2.15.2/beta2.15.2-dev20251030.d.ts +12 -0
- package/definitions/game/save/upgrade/versions/beta2.15.2/beta2.15.2-dev20251103.d.ts +12 -0
- package/definitions/game/save/upgrade/versions/beta2.15.2/beta2.15.2.d.ts +12 -0
- package/definitions/game/ui/input/Bindable.d.ts +228 -223
- package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +5 -1
- package/definitions/game/ui/screen/screens/game/static/actions/ActionsDrawer.d.ts +4 -1
- package/definitions/game/ui/screen/screens/menu/menus/JoinServerChooseModifiersMenu.d.ts +2 -2
- package/definitions/game/ui/screen/screens/menu/menus/pause/MultiplayerOptionsMenu.d.ts +8 -0
- package/definitions/game/utilities/collection/map/DefaultMap.d.ts +1 -1
- package/definitions/game/utilities/dev/Reflection.d.ts +2 -0
- package/definitions/game/utilities/object/Merge.d.ts +3 -1
- package/definitions/hosts/shared/globals.d.ts +2 -2
- package/definitions/utilities/event/EventEmitter.d.ts +3 -0
- package/definitions/utilities/math/Math2.d.ts +7 -1
- package/definitions/utilities/prototype/Define.d.ts +4 -2
- package/package.json +1 -1
- /package/definitions/game/game/item/{cooldown → runes}/InvokeCooldown.d.ts +0 -0
|
@@ -8,7 +8,7 @@ on:
|
|
|
8
8
|
env:
|
|
9
9
|
REPO_NAME: ${{ github.event.repository.name }}
|
|
10
10
|
EXTRA_RELEASE_ARGS: ${{ github.ref == 'refs/heads/development' && '--prerelease' || '' }}
|
|
11
|
-
EXTRA_NPM_ARGS: ${{ github.ref == 'refs/heads/development' && '--tag dev' || '' }}
|
|
11
|
+
EXTRA_NPM_ARGS: ${{ github.ref == 'refs/heads/development' && '--tag dev' || '--tag latest' }}
|
|
12
12
|
|
|
13
13
|
jobs:
|
|
14
14
|
release:
|
|
@@ -19,13 +19,16 @@ jobs:
|
|
|
19
19
|
id-token: write
|
|
20
20
|
packages: write
|
|
21
21
|
steps:
|
|
22
|
-
- uses: actions/checkout@
|
|
22
|
+
- uses: actions/checkout@v6
|
|
23
23
|
|
|
24
|
-
- uses: actions/setup-node@
|
|
24
|
+
- uses: actions/setup-node@v6
|
|
25
25
|
with:
|
|
26
|
-
node-version: "
|
|
26
|
+
node-version: "24.x"
|
|
27
27
|
registry-url: "https://registry.npmjs.org"
|
|
28
28
|
|
|
29
|
+
- name: Update npm
|
|
30
|
+
run: npm install -g npm@latest
|
|
31
|
+
|
|
29
32
|
- name: Parse package.json
|
|
30
33
|
id: set_var
|
|
31
34
|
run: |
|
|
@@ -66,5 +69,3 @@ jobs:
|
|
|
66
69
|
"../$REPO_NAME.zip#$REPO_NAME.zip"
|
|
67
70
|
|
|
68
71
|
- run: npm publish --provenance --access public $EXTRA_NPM_ARGS
|
|
69
|
-
env:
|
|
70
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { Game } from "@wayward/game/game/Game";
|
|
12
|
+
import type { SaveType } from "@wayward/game/game/IGame";
|
|
12
13
|
import "@wayward/game/game/entity/action/ActionsRegistration";
|
|
13
14
|
import "@wayward/game/game/entity/npc/NPCRegistration";
|
|
14
15
|
import "@wayward/game/game/item/Items";
|
|
15
16
|
export interface IInit {
|
|
16
17
|
game: Game;
|
|
17
|
-
onUnload(message?: string): Promise<void>;
|
|
18
|
+
onUnload(message?: string, saveType?: SaveType | false): Promise<void>;
|
|
18
19
|
}
|
|
19
20
|
export default function (): Promise<IInit | undefined>;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { Game } from "@wayward/game/game/Game";
|
|
12
|
+
import { SaveType } from "@wayward/game/game/IGame";
|
|
12
13
|
export declare class Uninit {
|
|
13
14
|
private readonly game;
|
|
14
15
|
private unloading;
|
|
@@ -17,6 +18,6 @@ export declare class Uninit {
|
|
|
17
18
|
onBeforeUnloadAsynchronous(event?: {
|
|
18
19
|
preventDefault?: () => void;
|
|
19
20
|
returnValue?: boolean | string;
|
|
20
|
-
}): Promise<void>;
|
|
21
|
+
}, saveType?: SaveType | false): Promise<void>;
|
|
21
22
|
onBeforeUnloadSynchronous(event: Event): void;
|
|
22
23
|
}
|
|
@@ -33,6 +33,7 @@ import type Version from "@wayward/utilities/Version";
|
|
|
33
33
|
import type { IVector2, IVector3 } from "@wayward/game/utilities/math/IVector";
|
|
34
34
|
import type { IBuildId } from "@wayward/hosts/shared/globalTypes";
|
|
35
35
|
import type { IRange } from "@wayward/utilities/math/Range";
|
|
36
|
+
import type Screen from "@wayward/game/ui/screen/Screen";
|
|
36
37
|
export interface IGameEvents {
|
|
37
38
|
/**
|
|
38
39
|
* Called when the game is starting
|
|
@@ -168,6 +169,12 @@ export type IGameOld = Partial<Game> & Partial<{
|
|
|
168
169
|
time: TimeManager;
|
|
169
170
|
wellData: Record<number, IWell | undefined>;
|
|
170
171
|
}>;
|
|
172
|
+
export interface IMultiplayerServerToJoin {
|
|
173
|
+
serverInfo: ServerInfo;
|
|
174
|
+
screen: Screen | undefined;
|
|
175
|
+
callback?: MultiplayerServerJoinCallback;
|
|
176
|
+
}
|
|
177
|
+
export type MultiplayerServerJoinCallback = (character: ICharacter | undefined, milestoneModifiers: Set<Milestone> | undefined) => void;
|
|
171
178
|
export interface IPlayOptions {
|
|
172
179
|
slot: number | undefined;
|
|
173
180
|
name: string;
|
|
@@ -175,9 +182,9 @@ export interface IPlayOptions {
|
|
|
175
182
|
difficulty: GameMode;
|
|
176
183
|
difficultyOptions?: IGameOptions;
|
|
177
184
|
milestoneModifiers: Set<Milestone>;
|
|
178
|
-
character
|
|
185
|
+
character?: ICharacter;
|
|
179
186
|
multiplayer: IMultiplayerOptions | boolean | undefined;
|
|
180
|
-
multiplayerServerToJoin:
|
|
187
|
+
multiplayerServerToJoin: IMultiplayerServerToJoin;
|
|
181
188
|
turnMode: TurnMode;
|
|
182
189
|
realTimeTickSpeed: number;
|
|
183
190
|
customMilestoneModifiersAllowed: boolean;
|
|
@@ -22,7 +22,7 @@ declare const _default: {
|
|
|
22
22
|
readonly disableTravel: true;
|
|
23
23
|
readonly disableHeightMaps: true;
|
|
24
24
|
readonly disableWebWorker: true;
|
|
25
|
-
readonly disableTreasureMaps:
|
|
25
|
+
readonly disableTreasureMaps: false;
|
|
26
26
|
readonly disableLoadingScreen: true;
|
|
27
27
|
readonly defaultTerrainBackground: TerrainType.Dirt;
|
|
28
28
|
readonly defaultCaveEntranceFlooring: TerrainType.Dirt;
|
|
@@ -94,7 +94,12 @@ export declare const CURSE_EVENTS_ENTITY_DESPAWN_CHANCE = 0.1;
|
|
|
94
94
|
* Some curse events extinguish light sources via additional decay (both static & dynamic (based on % of decay remaining))
|
|
95
95
|
* This multiplier affects how quickly curse ward doodads & items are extinguished compared to the rest
|
|
96
96
|
*/
|
|
97
|
-
export declare const CURSE_EVENTS_EXTINGUISH_WARD_MULTIPLIER = 0.
|
|
97
|
+
export declare const CURSE_EVENTS_EXTINGUISH_WARD_MULTIPLIER = 0.02;
|
|
98
|
+
/**
|
|
99
|
+
* Some curse events extinguish light sources via additional decay (both static & dynamic (based on % of decay remaining))
|
|
100
|
+
* This multiplier affects how quickly it happens when the cursebearer is sleeping
|
|
101
|
+
*/
|
|
102
|
+
export declare const CURSE_EVENTS_EXTINGUISH_SLEEPING_MULTIPLIER = 0.2;
|
|
98
103
|
export declare const CURSE_EVENTS_RUNE_CHANCE_MULTIPLIER_UNLUCKY: IRange<number>;
|
|
99
104
|
export declare const CURSE_EVENTS_RUNE_CHANCE_MULTIPLIER_LUCKY: IRange<number>;
|
|
100
105
|
/**
|
|
@@ -111,7 +116,7 @@ declare namespace Curse {
|
|
|
111
116
|
definition: CurseEvent;
|
|
112
117
|
}
|
|
113
118
|
function get(island?: Island, type?: CurseEventType): Helper | undefined;
|
|
114
|
-
function all(island: Island): CurseEventContext[];
|
|
119
|
+
function all(island: Island, cursebearer?: Human): CurseEventContext[];
|
|
115
120
|
function isMysteryForClient(event: CurseEventInstance): boolean;
|
|
116
121
|
function isMysteryForHuman(event: CurseEventInstance, human: Human): boolean;
|
|
117
122
|
function getOwnerEvent(island: Island, creature: Creature): CurseEventInstance | undefined;
|
|
@@ -120,6 +125,7 @@ declare namespace Curse {
|
|
|
120
125
|
function getCooldownMultiplier(island: Island, humans?: Human<unknown, number, ReferenceType.NPC | ReferenceType.Player, unknown>[]): number;
|
|
121
126
|
function clearCooldown(island: Island): void;
|
|
122
127
|
function resetCooldown(island: Island): void;
|
|
128
|
+
function updateRuneItemsDisplay(island: Island): void;
|
|
123
129
|
function tickCurse(island: Island, humans: Human[]): void;
|
|
124
130
|
function reload(island: Island, isNew?: boolean): void;
|
|
125
131
|
function spawnCurseEvents(island: Island, humans: Human[]): void;
|
|
@@ -72,6 +72,10 @@ export interface CurseEventContext {
|
|
|
72
72
|
* Mark the given creatures as "curse event" creatures. See the `spawnCreature` function for more information
|
|
73
73
|
*/
|
|
74
74
|
claim(...creatures: Creature[]): void;
|
|
75
|
+
/**
|
|
76
|
+
* Skip time in any scripts running for this event.
|
|
77
|
+
*/
|
|
78
|
+
skipTime(ticks: number): void;
|
|
75
79
|
reveal(forSpecificHuman?: ArrayOr<Human>): boolean;
|
|
76
80
|
discover(forSpecificHuman?: ArrayOr<Human>): boolean;
|
|
77
81
|
/**
|
|
@@ -139,6 +143,10 @@ export interface CurseEvent {
|
|
|
139
143
|
* This is used for the `CurseEventContext.getRandomTile` and `CurseEventContext.getNearbyPlayers` methods.
|
|
140
144
|
*/
|
|
141
145
|
radius?: number;
|
|
146
|
+
/**
|
|
147
|
+
* Creature types that this event can spawn by default.
|
|
148
|
+
*/
|
|
149
|
+
creatureTypes?: SupplierOr<CreatureType[] | undefined, [CurseEventContext]>;
|
|
142
150
|
/**
|
|
143
151
|
* Custom game options to apply during the curse event. Note that this only runs once, right at the start of the event.
|
|
144
152
|
*/
|
|
@@ -258,7 +258,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
|
258
258
|
* @param bypassChange Set to true if you just want to check if fertility can be increased.
|
|
259
259
|
* @returns True or false depending on if it increased in fertility or not.
|
|
260
260
|
*/
|
|
261
|
-
increaseFertility(bypassChange?: boolean, sendMessage?: boolean): boolean;
|
|
261
|
+
increaseFertility(bypassChange?: boolean, sendMessage?: boolean, bypassRipeningCheck?: boolean): boolean;
|
|
262
262
|
/**
|
|
263
263
|
* Return extra trap damage based on player multiplier and magical status
|
|
264
264
|
*/
|
|
@@ -297,7 +297,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
|
297
297
|
initializeMagicalPropertyManager(): MagicalPropertyManager;
|
|
298
298
|
isLitAndCanRevert(): boolean;
|
|
299
299
|
/**
|
|
300
|
-
* Reverts lit doodads if they provide
|
|
300
|
+
* Reverts lit doodads if they provide light and have a revert doodad type set.
|
|
301
301
|
*/
|
|
302
302
|
revert(): boolean;
|
|
303
303
|
onUnserialized(): void;
|
|
@@ -407,6 +407,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
|
407
407
|
* @returns True if fire overflowed, false if not.
|
|
408
408
|
*/
|
|
409
409
|
stokeFire(stokeValue: number, human?: Human): boolean;
|
|
410
|
+
getDecayAtStartWithMagical(): number;
|
|
410
411
|
/**
|
|
411
412
|
* Decay over time
|
|
412
413
|
*/
|
|
@@ -67,6 +67,7 @@ export interface IDoodadGroupDescription {
|
|
|
67
67
|
}
|
|
68
68
|
export interface IDoodadDescription extends IObjectDescription, IModdable, ICausesStatus, ICausesDamage, ITemperatureDescription {
|
|
69
69
|
actionTypes?: ActionType[];
|
|
70
|
+
allowedBiomes?: BiomeType[];
|
|
70
71
|
allowedTiles?: TerrainType[];
|
|
71
72
|
blockJump?: boolean;
|
|
72
73
|
/**
|
|
@@ -86,7 +87,7 @@ export interface IDoodadDescription extends IObjectDescription, IModdable, ICaus
|
|
|
86
87
|
canBreak?: boolean;
|
|
87
88
|
/**
|
|
88
89
|
* This doodad will be able to grow up until and including this stage.
|
|
89
|
-
* For example, conifers can grow up until seeding, but not bare. Most trees can grow until bare. Other plants, usually ripening.
|
|
90
|
+
* For example, conifers can grow up until seeding, but not bare. Most trees can grow until bare. Other plants, usually ripening. This is used to reset growth back to budding after reaching max growth (unless growsIntoTerrain is set).
|
|
90
91
|
*/
|
|
91
92
|
canGrow?: GrowingStage;
|
|
92
93
|
canGrowInCaves?: boolean;
|
|
@@ -548,6 +549,9 @@ export declare enum DoodadTypeGroup {
|
|
|
548
549
|
FireSource = -9990,
|
|
549
550
|
LitTorch = -9989,
|
|
550
551
|
LightDevice = -9988,
|
|
552
|
+
/**
|
|
553
|
+
* This is set for lit torches, candles, and jack-o'-lanterns specifically
|
|
554
|
+
*/
|
|
551
555
|
LightSource = -9987,
|
|
552
556
|
LitStructure = -9986,// Prevents pick up while lit
|
|
553
557
|
LockedChest = -9985,
|
|
@@ -559,7 +563,7 @@ export declare enum DoodadTypeGroup {
|
|
|
559
563
|
Wheelbarrow = -9979,
|
|
560
564
|
Altar = -9978,
|
|
561
565
|
OpenFireSource = -9977,
|
|
562
|
-
|
|
566
|
+
Unused = -9976,// <----------- Use this one
|
|
563
567
|
ContainsFuelSource = -9975,
|
|
564
568
|
CurseWard = -9974,
|
|
565
569
|
CannotBeSpread = -9973
|
|
@@ -69,6 +69,7 @@ import type { IVector2, IVector3 } from "@wayward/game/utilities/math/IVector";
|
|
|
69
69
|
import Vector2 from "@wayward/game/utilities/math/Vector2";
|
|
70
70
|
import type { IVector4 } from "@wayward/game/utilities/math/Vector4";
|
|
71
71
|
import type { IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
|
72
|
+
import type { RuneEffectType } from "@wayward/game/game/item/runes/RuneEffects";
|
|
72
73
|
interface IEquip {
|
|
73
74
|
item: Item;
|
|
74
75
|
equipType: EquipType;
|
|
@@ -120,7 +121,7 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
|
|
|
120
121
|
sortDirection?: SortDirection;
|
|
121
122
|
lastReceivedRune?: Deity;
|
|
122
123
|
lastGainedStat?: Stat;
|
|
123
|
-
invocations?: PartialRecord<
|
|
124
|
+
invocations?: PartialRecord<RuneEffectType, number>;
|
|
124
125
|
lastUsedCaveEntrance?: IVector3;
|
|
125
126
|
readonly movementIntent: IMovementIntent;
|
|
126
127
|
walkToInProgress?: IWalkToPathInProgress;
|
|
@@ -195,6 +196,10 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
|
|
|
195
196
|
get luck(): number;
|
|
196
197
|
get debug(): Debug.JIT<[]>;
|
|
197
198
|
updateDirection(tile: Tile | Direction.Cardinal, updateVehicleDirection?: boolean): Direction.Cardinal;
|
|
199
|
+
/**
|
|
200
|
+
* Not recommended for regular usage. Use the UpdateDirection action
|
|
201
|
+
*/
|
|
202
|
+
updateDirectionPropertiesInternal(direction: Direction.Cardinal): void;
|
|
198
203
|
protected onMovementCompleted(movingData: IMovingData): void;
|
|
199
204
|
moveTowardsIsland(direction: Direction.Cardinal | Direction.None, options?: Partial<IMoveToIslandOptions>): Promise<void>;
|
|
200
205
|
moveToIslandPosition(position: IVector2, options?: Partial<IMoveToIslandOptions>): Promise<void>;
|
|
@@ -168,6 +168,7 @@ export declare enum MoveType {
|
|
|
168
168
|
* If set, this entity will damage any crushable item they have stepped on.
|
|
169
169
|
*/
|
|
170
170
|
DamageCrushableTileItems = 8192,
|
|
171
|
+
/** Warning: This is a combination of other MoveType's, so when checking make sure to check that *all* flags are present */
|
|
171
172
|
Flying = 15
|
|
172
173
|
}
|
|
173
174
|
export declare enum AttackType {
|
|
@@ -190,7 +190,8 @@ export declare enum ActionType {
|
|
|
190
190
|
ExcavateCollapse = 141,
|
|
191
191
|
AddItemDiscovered = 142,
|
|
192
192
|
ResetItemDiscovered = 143,
|
|
193
|
-
Squish = 144
|
|
193
|
+
Squish = 144,
|
|
194
|
+
RemovePlayer = 145
|
|
194
195
|
}
|
|
195
196
|
export declare const ACTIONS_RECOMMENDED: ActionType[];
|
|
196
197
|
export declare enum ActionUsability {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemNearby], ActionType.Apply, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/ConsumeItem").IConsumeItemCanUse, [import("../../../item/Item").default]>;
|
|
13
13
|
export default _default;
|
|
@@ -14,8 +14,8 @@ import { SkillType } from "@wayward/game/game/entity/skill/ISkills";
|
|
|
14
14
|
import { Action } from "@wayward/game/game/entity/action/Action";
|
|
15
15
|
import type { IActionUsable } from "@wayward/game/game/entity/action/IAction";
|
|
16
16
|
import { ActionArgument, ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
17
|
-
import type { IItemDescription, IRangedDescription
|
|
18
|
-
import { ItemTypeGroup } from "@wayward/game/game/item/IItem";
|
|
17
|
+
import type { IItemDescription, IRangedDescription } from "@wayward/game/game/item/IItem";
|
|
18
|
+
import { ItemType, ItemTypeGroup } from "@wayward/game/game/item/IItem";
|
|
19
19
|
import type Item from "@wayward/game/game/item/Item";
|
|
20
20
|
import type Tile from "@wayward/game/game/tile/Tile";
|
|
21
21
|
export interface IBaseCanUse extends IActionUsable {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemInventory], [arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.Tile]], ActionType.Chop, import("../../../doodad/Doodad").default | import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/Gather").IGatherCanUse, [(import("../../../item/Item").default | undefined)?, (import("../../../tile/Tile").default | undefined)?]>;
|
|
13
13
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.Container, import("@wayward/game/game/entity/action/IAction").ActionArgument.NPCNearby], [arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.Boolean]], ActionType.CloseContainer, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/ToggleContainer").IToggleContainerCanUse, [(import("../../npc/NPC").default | import("../../../item/IItem").IContainer | undefined)?, (boolean | undefined)?]>;
|
|
13
13
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.DoodadNearby], [arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.Boolean]], ActionType.CloseDoor, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, boolean, import("@wayward/game/game/entity/action/actions/ToggleDoor").IToggleDoorCanUse, [(import("../../../doodad/Doodad").default | undefined)?, (boolean | undefined)?]>;
|
|
13
13
|
export default _default;
|
|
@@ -36,7 +36,7 @@ declare const _default: Action<[ActionArgument.DoodadNearby], ActionType.Consecr
|
|
|
36
36
|
groupRunes(runes: Item[]): ConsecrateRuneGroup[];
|
|
37
37
|
getReturnDeity(runeGroups: ConsecrateRuneGroup[]): DeityReal | undefined;
|
|
38
38
|
groupRunesFriendAndFoe(runeGroups: ConsecrateRuneGroup[], deity: DeityReal): ConsecrateRuneGroupFriendAndFoe;
|
|
39
|
-
getDeityRuneTypes(deity: DeityReal): ItemType[];
|
|
39
|
+
getDeityRuneTypes(human: Human, deity: DeityReal): ItemType[];
|
|
40
40
|
calculateValue(human: Human, runes: Item[], deity: DeityReal, calculationType: "min" | "max" | "random"): number;
|
|
41
41
|
resolveRunesForValue(human: Human, value: number, maxValue?: number): ConsecrateOutcomeRuneQualityCounts;
|
|
42
42
|
};
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemNearby], ActionType.Cure, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/ConsumeItem").IConsumeItemCanUse, [import("../../../item/Item").default]>;
|
|
13
13
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemNearby, import("@wayward/game/game/entity/action/IAction").ActionArgument.DoodadNearby]], ActionType.DismountVehicle, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/ToggleVehicle").ToggleVehicleCanUse, [(import("../../../doodad/Doodad").default | import("../../../item/Item").default | undefined)?]>;
|
|
13
13
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemNearby], ActionType.DrinkItem, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/ConsumeItem").IConsumeItemCanUse, [import("../../../item/Item").default]>;
|
|
13
13
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemNearby], ActionType.Eat, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/ConsumeItem").IConsumeItemCanUse, [import("../../../item/Item").default]>;
|
|
13
13
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.DoodadNearby]], ActionType.EquipFromArmorStand, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, boolean, import("@wayward/game/game/entity/action/actions/SwapWithArmorStand").ISwapEquipment, [(import("../../../doodad/Doodad").default | undefined)?]>;
|
|
13
13
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemNearby], ActionType.Heal, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/ConsumeItem").IConsumeItemCanUse, [import("../../../item/Item").default]>;
|
|
13
13
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[], ActionType.Hitch, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/ToggleHitch").IToggleHitchCanUse, []>;
|
|
13
13
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemInventory], [import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("../argument/ActionArgumentEnum").default<import("../../IEntity").AttackType, "MeleeWeapon" | "HandToHand" | "RangedWeapon" | "ThrowItem">], [arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemInventory]], ActionType.Melee, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/Attack").IAttackCanUse, [(import("../../../item/Item").default | undefined)?, (import("../../IEntity").AttackType | undefined)?, (import("../../../item/Item").default | undefined)?]>;
|
|
13
13
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemInventory], [arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.Tile]], ActionType.Mine, import("../../../doodad/Doodad").default | import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/Gather").IGatherCanUse, [(import("../../../item/Item").default | undefined)?, (import("../../../tile/Tile").default | undefined)?]>;
|
|
13
13
|
export default _default;
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { Action } from "@wayward/game/game/entity/action/Action";
|
|
12
12
|
import { ActionArgument, ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
+
import { Direction } from "@wayward/game/utilities/math/Direction";
|
|
13
14
|
declare const _default: Action<[ActionArgument.Direction], ActionType.Move, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, {
|
|
14
15
|
usable: true;
|
|
15
|
-
}, [
|
|
16
|
+
}, [Direction.None | Direction.East | Direction.North | Direction.West | Direction.South]>;
|
|
16
17
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.Container, import("@wayward/game/game/entity/action/IAction").ActionArgument.NPCNearby], [arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.Boolean]], ActionType.OpenContainer, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/ToggleContainer").IToggleContainerCanUse, [(import("../../npc/NPC").default | import("../../../item/IItem").IContainer | undefined)?, (boolean | undefined)?]>;
|
|
13
13
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.DoodadNearby], [arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.Boolean]], ActionType.OpenDoor, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, boolean, import("@wayward/game/game/entity/action/actions/ToggleDoor").IToggleDoorCanUse, [(import("../../../doodad/Doodad").default | undefined)?, (boolean | undefined)?]>;
|
|
13
13
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemInventory]], ActionType.PackGround, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/ToggleTilled").ITillCanUse, [(import("../../../item/Item").default | undefined)?]>;
|
|
13
13
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemNearby, [arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.Tile]], ActionType.PlaceDown, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/Build").IBuildCanUse, [import("../../../item/Item").default, (import("../../../tile/Tile").default | undefined)?]>;
|
|
13
13
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.DoodadNearby], [arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.Boolean]], ActionType.PropOpenDoor, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, boolean, import("@wayward/game/game/entity/action/actions/ToggleDoor").IToggleDoorCanUse, [(import("../../../doodad/Doodad").default | undefined)?, (boolean | undefined)?]>;
|
|
13
13
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemNearby, import("@wayward/game/game/entity/action/IAction").ActionArgument.Boolean], ActionType.ProtectItem, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [import("../../../item/Item").default, boolean]>;
|
|
13
13
|
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2025 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 { Action } from "@wayward/game/game/entity/action/Action";
|
|
12
|
+
import { ActionArgument, ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
+
declare const _default: Action<[ActionArgument.String], ActionType.RemovePlayer, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [string]>;
|
|
14
|
+
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemNearby, import("@wayward/game/game/entity/action/IAction").ActionArgument.DoodadNearby]], ActionType.Ride, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/ToggleVehicle").ToggleVehicleCanUse, [(import("../../../doodad/Doodad").default | import("../../../item/Item").default | undefined)?]>;
|
|
13
13
|
export default _default;
|
|
@@ -9,5 +9,6 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
|
|
12
|
+
import { AiType } from "@wayward/game/game/entity/ai/AI";
|
|
13
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.Creature], [arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemInventory], import("../argument/ActionArgumentEnum").default<AiType, "None" | "Attack" | "Idle" | "Neutral" | "Scared" | "Hostile" | "Fearless" | "HostileFearless" | "Alerted" | "Waiting" | "Hidden" | "Pacified" | "CanSwapWith" | "CanSwapLayers" | "FollowClose" | "FollowFar" | "Stay" | "AttackAdjacent" | "AttackInSight" | "Defend" | "Heel">], ActionType.SetCreatureAiAll, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/SetCreatureAi").ISetCreatureAiCanUse, [import("../../creature/Creature").default | undefined, import("../../../item/Item").default | undefined, AiType]>;
|
|
13
14
|
export default _default;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
declare const _default: import("
|
|
12
|
+
declare const _default: import("@wayward/game/game/entity/action/Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemNearby, import("@wayward/game/game/entity/action/IAction").ActionArgument.DoodadNearby], [import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("../argument/ActionArgumentEnum").default<import("../../IHuman").RestType, "Resting" | "Sleeping">]], ActionType.Sleep, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/Rest").IRestCanUse, [(import("../../../doodad/Doodad").default | import("../../../item/Item").default | undefined)?, (import("../../IHuman").RestType | undefined)?]>;
|
|
13
13
|
export default _default;
|
|
@@ -21,12 +21,10 @@ export interface IStartFireCanUse extends IActionUsable {
|
|
|
21
21
|
kindlingFuelNeeded: boolean;
|
|
22
22
|
tinderNeeded: boolean;
|
|
23
23
|
fuelNeeded: boolean;
|
|
24
|
-
candleNeeded: boolean;
|
|
25
24
|
doodad?: Doodad;
|
|
26
25
|
kindling?: Item;
|
|
27
26
|
tinder?: Item;
|
|
28
27
|
fuel?: Item;
|
|
29
|
-
candle?: Item;
|
|
30
28
|
tileEvent?: TileEvent;
|
|
31
29
|
}
|
|
32
30
|
declare const _default: Action<[ActionArgument.ItemInventory, [arg1: ActionArgument.Undefined, ActionArgument.ItemInventory], [arg1: ActionArgument.Undefined, ActionArgument.ItemNearby], [arg1: ActionArgument.Undefined, ActionArgument.ItemNearby], [arg1: ActionArgument.Undefined, ActionArgument.ItemNearby]], ActionType.StartFire, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, IStartFireCanUse, [Item, (Item | undefined)?, (Item | undefined)?, (Item | undefined)?, (Item | undefined)?]>;
|