@wayward/types 2.11.4-beta.dev.20220204.2 → 2.11.4-beta.dev.20220208.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/game/game/entity/action/Actions.d.ts +3 -3
- package/definitions/game/game/entity/action/IAction.d.ts +15 -13
- package/definitions/game/game/entity/action/actions/Disassemble.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dismantle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateItemQuickSlot.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/helper/GatherTreasure.d.ts +1 -2
- package/definitions/game/game/item/IItem.d.ts +1 -0
- package/definitions/game/game/item/Item.d.ts +1 -1
- package/definitions/game/game/item/ItemManager.d.ts +1 -1
- package/definitions/game/game/mapping/DrawnMap.d.ts +1 -0
- package/definitions/game/game/options/modifiers/GameplayModifier.d.ts +8 -6
- package/definitions/game/game/options/modifiers/GameplayModifiersManager.d.ts +2 -2
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifier.d.ts +5 -3
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/shared/TamedCreatureMilestoneModifier.d.ts +2 -2
- package/definitions/game/game/tile/events/IFire.d.ts +2 -2
- package/definitions/game/multiplayer/packets/BasePacket.d.ts +2 -0
- package/definitions/game/multiplayer/packets/client/ShowLoadingScreenPacket.d.ts +0 -2
- package/definitions/game/ui/old/screens/InGameScreen.d.ts +1 -1
- package/package.json +1 -1
|
@@ -26,8 +26,8 @@ declare const actionDescriptions: {
|
|
|
26
26
|
31: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default]>;
|
|
27
27
|
79: import("./Action").Action<[], import("../player/Player").default | import("../npc/NPC").default, void, []>;
|
|
28
28
|
12: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemInventory, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default | import("../npc/NPC").default, void, [(import("../../item/Item").default | undefined)?]>;
|
|
29
|
-
0: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default]>;
|
|
30
|
-
39: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default]>;
|
|
29
|
+
0: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.OptionalItemArrayNearby, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default, ((import("../../item/Item").default | undefined)[] | undefined)?]>;
|
|
30
|
+
39: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default, (import("../../item/Item").default | undefined)?]>;
|
|
31
31
|
38: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default]>;
|
|
32
32
|
61: import("./Action").Action<[], import("../player/Player").default | import("../npc/NPC").default, void, []>;
|
|
33
33
|
8: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default]>;
|
|
@@ -111,7 +111,7 @@ declare const actionDescriptions: {
|
|
|
111
111
|
89: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Boolean], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default, boolean]>;
|
|
112
112
|
59: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Direction, [import("game/entity/action/IAction").ActionArgument.Integer32, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../../utilities/math/Direction").Direction.None | import("../../../utilities/math/Direction").Direction.East | import("../../../utilities/math/Direction").Direction.North | import("../../../utilities/math/Direction").Direction.West | import("../../../utilities/math/Direction").Direction.South, (number | undefined)?]>;
|
|
113
113
|
90: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Container, [import("game/entity/action/IAction").ActionArgument.UnsignedInteger32NumberArray, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default, void, [import("../../item/IItem").IContainer, (number[] | undefined)?]>;
|
|
114
|
-
97: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Item,
|
|
114
|
+
97: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Item, import("game/entity/action/IAction").ActionArgument.Integer32, [import("game/entity/action/IAction").ActionArgument.Boolean, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default, void, [import("../../item/Item").default, number, (boolean | undefined)?]>;
|
|
115
115
|
104: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.String, import("game/entity/action/IAction").ActionArgument.Object], import("../player/Player").default, void, [string, any?]>;
|
|
116
116
|
92: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default, (import("../../item/Item").default | undefined)?]>;
|
|
117
117
|
62: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.ActionType], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default, ActionType]>;
|
|
@@ -282,19 +282,20 @@ export declare enum ActionArgument {
|
|
|
282
282
|
ItemArray = 21,
|
|
283
283
|
ItemArrayInventory = 22,
|
|
284
284
|
ItemArrayNearby = 23,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
285
|
+
OptionalItemArrayNearby = 24,
|
|
286
|
+
ItemInventory = 25,
|
|
287
|
+
ItemNearby = 26,
|
|
288
|
+
ItemType = 27,
|
|
289
|
+
NPC = 28,
|
|
290
|
+
NPCNearby = 29,
|
|
291
|
+
Player = 30,
|
|
292
|
+
Quality = 31,
|
|
293
|
+
RecipeType = 32,
|
|
294
|
+
RestType = 33,
|
|
295
|
+
TileEvent = 34,
|
|
296
|
+
UnsignedInteger32NumberArray = 35,
|
|
297
|
+
Vector2 = 36,
|
|
298
|
+
Vector3 = 37
|
|
298
299
|
}
|
|
299
300
|
export declare type ActionArgumentTypeMap<X extends ActionArgument> = {
|
|
300
301
|
[ActionArgument.Undefined]: undefined;
|
|
@@ -321,6 +322,7 @@ export declare type ActionArgumentTypeMap<X extends ActionArgument> = {
|
|
|
321
322
|
[ActionArgument.ItemArray]: Item[];
|
|
322
323
|
[ActionArgument.ItemArrayInventory]: Item[];
|
|
323
324
|
[ActionArgument.ItemArrayNearby]: Item[];
|
|
325
|
+
[ActionArgument.OptionalItemArrayNearby]: Array<Item | undefined>;
|
|
324
326
|
[ActionArgument.ItemInventory]: Item;
|
|
325
327
|
[ActionArgument.ItemNearby]: Item;
|
|
326
328
|
[ActionArgument.ItemType]: ItemType;
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
import { Action } from "game/entity/action/Action";
|
|
12
12
|
import { ActionArgument } from "game/entity/action/IAction";
|
|
13
13
|
import type Item from "game/item/Item";
|
|
14
|
-
declare const _default: Action<[ActionArgument.ItemNearby], import("../../player/Player").default | import("../../npc/NPC").default, void, [Item]>;
|
|
14
|
+
declare const _default: Action<[ActionArgument.ItemNearby, [ActionArgument.OptionalItemArrayNearby, ActionArgument.Undefined]], import("../../player/Player").default | import("../../npc/NPC").default, void, [Item, ((Item | undefined)[] | undefined)?]>;
|
|
15
15
|
export default _default;
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
import { Action } from "game/entity/action/Action";
|
|
12
12
|
import { ActionArgument } from "game/entity/action/IAction";
|
|
13
13
|
import type Item from "game/item/Item";
|
|
14
|
-
declare const _default: Action<[ActionArgument.ItemNearby], import("../../player/Player").default | import("../../npc/NPC").default, void, [Item]>;
|
|
14
|
+
declare const _default: Action<[ActionArgument.ItemNearby, [ActionArgument.ItemNearby, ActionArgument.Undefined]], import("../../player/Player").default | import("../../npc/NPC").default, void, [Item, (Item | undefined)?]>;
|
|
15
15
|
export default _default;
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { Action } from "game/entity/action/Action";
|
|
12
12
|
import { ActionArgument } from "game/entity/action/IAction";
|
|
13
|
-
declare const _default: Action<[ActionArgument.Item,
|
|
13
|
+
declare const _default: Action<[ActionArgument.Item, ActionArgument.Integer32, [ActionArgument.Boolean, ActionArgument.Undefined]], import("../../player/Player").default, void, [import("../../../item/Item").default, number, (boolean | undefined)?]>;
|
|
14
14
|
export default _default;
|
|
@@ -14,10 +14,9 @@ import type Player from "game/entity/player/Player";
|
|
|
14
14
|
import type Item from "game/item/Item";
|
|
15
15
|
import type { ITreasure } from "game/mapping/DrawnMap";
|
|
16
16
|
import type DrawnMap from "game/mapping/DrawnMap";
|
|
17
|
-
import type { IVector3 } from "utilities/math/IVector";
|
|
18
17
|
export declare enum GatherTreasureResult {
|
|
19
18
|
NoTreasure = 0,
|
|
20
19
|
NotYet = 1,
|
|
21
20
|
Gathered = 2
|
|
22
21
|
}
|
|
23
|
-
export default function (map: DrawnMap, treasure: ITreasure,
|
|
22
|
+
export default function (map: DrawnMap, treasure: ITreasure, action: IActionHandlerApi<Player | NPC>, tool?: Item): GatherTreasureResult;
|
|
@@ -187,6 +187,7 @@ export interface IItemDescription extends IObjectDescription, IModdable, ITemper
|
|
|
187
187
|
/**
|
|
188
188
|
* Array of items that the item is "made from" in cases where we can't use the disassembly items to burn into.
|
|
189
189
|
* All items in array are required to have onBurn set in their description to function properly.
|
|
190
|
+
* This should eventually be removed since we want to be able to break down items into proper sub-ingredients/items.
|
|
190
191
|
*/
|
|
191
192
|
burnsLike?: ItemType[];
|
|
192
193
|
spawnableTiles?: TileGroup;
|
|
@@ -169,7 +169,7 @@ export default class Item extends EventEmitter.Host<IItemEvents> implements IRef
|
|
|
169
169
|
isEquipped(): boolean;
|
|
170
170
|
getEquippedPlayer(): Human | undefined;
|
|
171
171
|
getEquipSlot(): EquipType | undefined;
|
|
172
|
-
setQuickSlot(player: Player, quickSlot: number
|
|
172
|
+
setQuickSlot(player: Player, quickSlot: number, removeQuickSlot?: boolean): void;
|
|
173
173
|
clearQuickSlot(): void;
|
|
174
174
|
isDecayed(): boolean;
|
|
175
175
|
changeInto(type: ItemType, disableNotify?: boolean, emitTransformation?: boolean): void;
|
|
@@ -208,7 +208,7 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
|
|
|
208
208
|
* Note: It may return the real containedItems array!
|
|
209
209
|
*/
|
|
210
210
|
getOrderedContainerItems(container: IContainer, options?: Partial<IGetItemOptions>): Item[];
|
|
211
|
-
|
|
211
|
+
capWeightOfItems(createdItems: Item[], itemWeight: number): void;
|
|
212
212
|
getItemTypeTranslation(itemType: ItemType | ItemTypeGroup): Translation;
|
|
213
213
|
getItemTypeTranslation(itemType: ItemType | ItemTypeGroup, count: number): Translation;
|
|
214
214
|
getItemTypeTranslation(itemType: ItemType | ItemTypeGroup, article: boolean): Translation;
|
|
@@ -125,6 +125,7 @@ export default class DrawnMap extends EventEmitter.Host<IDrawnMapEvents> impleme
|
|
|
125
125
|
get isValid(): boolean;
|
|
126
126
|
get island(): Island;
|
|
127
127
|
private constructor();
|
|
128
|
+
toString(): string;
|
|
128
129
|
preSerializeObject(): void;
|
|
129
130
|
onUnserialized(): void;
|
|
130
131
|
getTreasure(): readonly ITreasure[];
|
|
@@ -13,10 +13,11 @@ import type { IGameOptionsPartial } from "game/options/IGameOptions";
|
|
|
13
13
|
import type Translation from "language/Translation";
|
|
14
14
|
import type { Random, SeededGenerator } from "utilities/random/Random";
|
|
15
15
|
import { RandomInstance, RandomReference } from "utilities/random/Random";
|
|
16
|
-
export declare abstract class GameplayModifierInstance<ID extends number> {
|
|
16
|
+
export declare abstract class GameplayModifierInstance<ID extends number, INSTANCE_ARGS extends any[] = []> {
|
|
17
17
|
readonly id: ID;
|
|
18
18
|
readonly random: Random<SeededGenerator>;
|
|
19
|
-
|
|
19
|
+
protected readonly args: INSTANCE_ARGS;
|
|
20
|
+
constructor(id: ID, random: Random<SeededGenerator>, ...args: INSTANCE_ARGS);
|
|
20
21
|
options: IGameOptionsPartial;
|
|
21
22
|
setOptions(options: IGameOptionsPartial): this;
|
|
22
23
|
addOptions(options: IGameOptionsPartial): this;
|
|
@@ -25,12 +26,13 @@ export declare abstract class GameplayModifierInstance<ID extends number> {
|
|
|
25
26
|
protected abstract getDefaultTitle(): Translation;
|
|
26
27
|
setTitle(initializer: (defaultTitle: Translation) => Translation): this;
|
|
27
28
|
}
|
|
28
|
-
export declare type GetModifierInstance<MODIFIER extends GameplayModifier<number>> = MODIFIER extends GameplayModifier<number, infer INSTANCE, any[]> ? INSTANCE : never;
|
|
29
|
-
export declare type GetModifierId<MODIFIER extends GameplayModifier<number>> = MODIFIER extends GameplayModifier<infer ID, any, any[]> ? ID : never;
|
|
30
|
-
export declare type GetModifierInstanceArgs<MODIFIER extends GameplayModifier<number>> = MODIFIER extends GameplayModifier<number, any, infer INSTANCE_ARGS> ? INSTANCE_ARGS : never;
|
|
31
|
-
export default abstract class GameplayModifier<ID extends number, INSTANCE extends GameplayModifierInstance<ID> = GameplayModifierInstance<ID>, INSTANCE_ARGS extends any[] = []> implements IHasImagePath {
|
|
29
|
+
export declare type GetModifierInstance<MODIFIER extends GameplayModifier<number, GameplayModifierInstance<number, any[]>, any[]>> = MODIFIER extends GameplayModifier<number, infer INSTANCE, any[]> ? INSTANCE : never;
|
|
30
|
+
export declare type GetModifierId<MODIFIER extends GameplayModifier<number, GameplayModifierInstance<number, any[]>, any[]>> = MODIFIER extends GameplayModifier<infer ID, any, any[]> ? ID : never;
|
|
31
|
+
export declare type GetModifierInstanceArgs<MODIFIER extends GameplayModifier<number, GameplayModifierInstance<number, any[]>, any[]>> = MODIFIER extends GameplayModifier<number, any, infer INSTANCE_ARGS> ? INSTANCE_ARGS : never;
|
|
32
|
+
export default abstract class GameplayModifier<ID extends number, INSTANCE extends GameplayModifierInstance<ID, any[]> = GameplayModifierInstance<ID, any[]>, INSTANCE_ARGS extends any[] = []> implements IHasImagePath {
|
|
32
33
|
readonly id: ID;
|
|
33
34
|
readonly random: RandomInstance | RandomReference;
|
|
35
|
+
private readonly _args;
|
|
34
36
|
readonly imagePath?: string;
|
|
35
37
|
constructor(id: ID, random?: RandomInstance | RandomReference);
|
|
36
38
|
abstract instantiate(type: ID, ...args: INSTANCE_ARGS): INSTANCE;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import type GameplayModifier from "game/options/modifiers/GameplayModifier";
|
|
12
12
|
import type { GameplayModifierInstance, GetModifierId, GetModifierInstance, GetModifierInstanceArgs } from "game/options/modifiers/GameplayModifier";
|
|
13
13
|
import type { StringableObject } from "utilities/object/Objects";
|
|
14
|
-
export default abstract class GameplayModifiersManager<MODIFIER extends GameplayModifier<number, GameplayModifierInstance<number>, any[]>, ID extends GetModifierId<MODIFIER> = GetModifierId<MODIFIER>, INSTANCE_ARGS extends GetModifierInstanceArgs<MODIFIER> = GetModifierInstanceArgs<MODIFIER>> {
|
|
14
|
+
export default abstract class GameplayModifiersManager<MODIFIER extends GameplayModifier<number, GameplayModifierInstance<number, any[]>, any[]>, ID extends GetModifierId<MODIFIER> = GetModifierId<MODIFIER>, INSTANCE_ARGS extends GetModifierInstanceArgs<MODIFIER> = GetModifierInstanceArgs<MODIFIER>> {
|
|
15
15
|
private readonly enumObject;
|
|
16
16
|
private readonly classes;
|
|
17
17
|
private _instances;
|
|
@@ -21,7 +21,7 @@ export default abstract class GameplayModifiersManager<MODIFIER extends Gameplay
|
|
|
21
21
|
getModifierInstance(id: ID): MODIFIER | undefined;
|
|
22
22
|
createCollection(...args: INSTANCE_ARGS): GameplayModifiersCollection<MODIFIER, ID>;
|
|
23
23
|
}
|
|
24
|
-
export declare class GameplayModifiersCollection<MODIFIER extends GameplayModifier<number, GameplayModifierInstance<number>, any[]>, ID extends GetModifierId<MODIFIER> = GetModifierId<MODIFIER>, INSTANCE extends GetModifierInstance<MODIFIER> = GetModifierInstance<MODIFIER>, INSTANCE_ARGS extends GetModifierInstanceArgs<MODIFIER> = GetModifierInstanceArgs<MODIFIER>> {
|
|
24
|
+
export declare class GameplayModifiersCollection<MODIFIER extends GameplayModifier<number, GameplayModifierInstance<number, any[]>, any[]>, ID extends GetModifierId<MODIFIER> = GetModifierId<MODIFIER>, INSTANCE extends GetModifierInstance<MODIFIER> = GetModifierInstance<MODIFIER>, INSTANCE_ARGS extends GetModifierInstanceArgs<MODIFIER> = GetModifierInstanceArgs<MODIFIER>> {
|
|
25
25
|
protected readonly manager: GameplayModifiersManager<MODIFIER>;
|
|
26
26
|
readonly initializedModifiers: Map<ID, INSTANCE>;
|
|
27
27
|
protected readonly args: INSTANCE_ARGS;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type Entity from "game/entity/Entity";
|
|
12
|
+
import type Player from "game/entity/player/Player";
|
|
12
13
|
import type { Milestone } from "game/milestones/IMilestone";
|
|
13
14
|
import type { IGameOptionsPartial } from "game/options/IGameOptions";
|
|
14
15
|
import GameplayModifier, { GameplayModifierInstance } from "game/options/modifiers/GameplayModifier";
|
|
@@ -25,11 +26,12 @@ export declare enum MilestoneModifierGroup {
|
|
|
25
26
|
Challenge = 9
|
|
26
27
|
}
|
|
27
28
|
export declare const milestoneGroupIcons: Record<MilestoneModifierGroup, string>;
|
|
28
|
-
export declare class MilestoneModifierInstance extends GameplayModifierInstance<Milestone> {
|
|
29
|
+
export declare class MilestoneModifierInstance extends GameplayModifierInstance<Milestone, [Player?]> {
|
|
30
|
+
protected get player(): Player | undefined;
|
|
29
31
|
isEnabledForPlayer(entity: Entity): boolean;
|
|
30
32
|
protected getDefaultTitle(): import("../../../../language/impl/TranslationImpl").default;
|
|
31
33
|
}
|
|
32
|
-
export default abstract class MilestoneModifier extends GameplayModifier<Milestone, MilestoneModifierInstance> {
|
|
34
|
+
export default abstract class MilestoneModifier extends GameplayModifier<Milestone, MilestoneModifierInstance, [Player?]> {
|
|
33
35
|
after?: Milestone[];
|
|
34
36
|
/**
|
|
35
37
|
* Whether this milestone modifier is host-exclusive, IE, clients connecting to a server can't select this modifier.
|
|
@@ -38,7 +40,7 @@ export default abstract class MilestoneModifier extends GameplayModifier<Milesto
|
|
|
38
40
|
*/
|
|
39
41
|
isGlobal: boolean;
|
|
40
42
|
constructor(id?: Milestone);
|
|
41
|
-
instantiate(id: Milestone): MilestoneModifierInstance;
|
|
43
|
+
instantiate(id: Milestone, player?: Player): MilestoneModifierInstance;
|
|
42
44
|
abstract getOptions(): IGameOptionsPartial;
|
|
43
45
|
initialize(instance: MilestoneModifierInstance): MilestoneModifierInstance;
|
|
44
46
|
abstract getGroup(): MilestoneModifierGroup;
|
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
+
import type Player from "game/entity/player/Player";
|
|
11
12
|
import { Milestone } from "game/milestones/IMilestone";
|
|
12
13
|
import GameplayModifiersManager from "game/options/modifiers/GameplayModifiersManager";
|
|
13
14
|
import type MilestoneModifier from "game/options/modifiers/milestone/MilestoneModifier";
|
|
14
|
-
declare class MilestoneModifiersManager extends GameplayModifiersManager<MilestoneModifier> {
|
|
15
|
+
declare class MilestoneModifiersManager extends GameplayModifiersManager<MilestoneModifier, Milestone, [Player?]> {
|
|
15
16
|
constructor();
|
|
16
17
|
has(milestone: Milestone): boolean;
|
|
17
18
|
getUnlocked(): Milestone[];
|
|
@@ -14,12 +14,12 @@ import MilestoneModifier, { MilestoneModifierGroup, MilestoneModifierInstance }
|
|
|
14
14
|
import type { Random, SeededGenerator } from "utilities/random/Random";
|
|
15
15
|
declare class TamedCreatureMilestoneModifierInstance extends MilestoneModifierInstance {
|
|
16
16
|
private readonly modifier;
|
|
17
|
-
constructor(modifier: TamedCreatureMilestoneModifier, id: Milestone, random: Random<SeededGenerator
|
|
17
|
+
constructor(modifier: TamedCreatureMilestoneModifier, id: Milestone, random: Random<SeededGenerator>, player?: Player);
|
|
18
18
|
onSpawnPlayer(player: Player): void;
|
|
19
19
|
}
|
|
20
20
|
export default abstract class TamedCreatureMilestoneModifier extends MilestoneModifier {
|
|
21
21
|
getGroup(): MilestoneModifierGroup;
|
|
22
|
-
instantiate(id: Milestone): TamedCreatureMilestoneModifierInstance;
|
|
22
|
+
instantiate(id: Milestone, player?: Player): TamedCreatureMilestoneModifierInstance;
|
|
23
23
|
abstract isAberrant(): boolean;
|
|
24
24
|
}
|
|
25
25
|
export {};
|
|
@@ -33,7 +33,7 @@ export declare module FireStage {
|
|
|
33
33
|
function getTemperature(stage: FireStage, min: number, max: number): number;
|
|
34
34
|
}
|
|
35
35
|
export declare module IFire {
|
|
36
|
-
function dissassemblyBurn(island: Island, item: Item, container: ITileContainer, disassembly: boolean):
|
|
36
|
+
function dissassemblyBurn(island: Island, item: Item, container: ITileContainer, disassembly: boolean): Item[];
|
|
37
37
|
function harvestGatherBurn(step: number, resources: ILootItem[] | undefined, container: IContainer, quality: Quality | undefined, tileEvent: TileEvent): void;
|
|
38
|
-
function burnsLike(burnsLikeItem: ItemType, tileEvent: TileEvent, tileContainer: IContainer, quality: Quality | undefined):
|
|
38
|
+
function burnsLike(burnsLikeItem: ItemType, tileEvent: TileEvent, tileContainer: IContainer, quality: Quality | undefined): Item[];
|
|
39
39
|
}
|
|
@@ -89,7 +89,9 @@ export default abstract class BasePacket {
|
|
|
89
89
|
protected readIsland(): Island;
|
|
90
90
|
protected writeIsland(value: Island): void;
|
|
91
91
|
protected readItems(): Item[];
|
|
92
|
+
protected readOptionalItems(): Array<Item | undefined>;
|
|
92
93
|
protected writeItems(value: Item[]): void;
|
|
94
|
+
protected writeOptionalItems(value: Array<Item | undefined>): void;
|
|
93
95
|
protected readTileEvent(): TileEvent | undefined;
|
|
94
96
|
protected writeTileEvent(value: TileEvent): void;
|
|
95
97
|
protected readObject(): any;
|
|
@@ -10,10 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { Load } from "game/meta/Loading";
|
|
12
12
|
import ClientPacket from "multiplayer/packets/ClientPacket";
|
|
13
|
-
import { ScreenId } from "ui/screen/IScreen";
|
|
14
13
|
export default class ShowLoadingScreenPacket extends ClientPacket {
|
|
15
14
|
load: Load;
|
|
16
|
-
hideScreens?: ScreenId[];
|
|
17
15
|
getDebugInfo(): string;
|
|
18
16
|
isSyncCheckEnabled(): boolean;
|
|
19
17
|
process(): void;
|
|
@@ -166,7 +166,7 @@ export default class InGameScreen extends BaseScreen {
|
|
|
166
166
|
addItemToFreeQuickSlot(itemId: number): boolean;
|
|
167
167
|
clearQuickSlot(quickSlot: number, internal?: boolean): void;
|
|
168
168
|
removeItemFromQuickSlot(quickSlot: number, itemId?: number, skipSync?: boolean): void;
|
|
169
|
-
setItemQuickslot(item: Item, quickSlot: number
|
|
169
|
+
setItemQuickslot(item: Item, quickSlot: number, removeQuickSlot?: boolean): void;
|
|
170
170
|
updateQuickSlotItem(quickSlot: number): boolean;
|
|
171
171
|
onUpdateQuickSlotsOrEquips(): void;
|
|
172
172
|
onSortableItemReceive(sortableEvent: ISortableEvent): void;
|
package/package.json
CHANGED