@wayward/types 2.11.0-beta.dev.20211124.3 → 2.11.0-beta.dev.20211124.4
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/Human.d.ts +1 -1
- package/definitions/game/game/entity/StatFactory.d.ts +2 -1
- package/definitions/game/game/entity/Stats.d.ts +2 -1
- package/definitions/game/game/entity/player/Player.d.ts +1 -1
- package/definitions/game/game/entity/player/quest/QuestManager.d.ts +2 -1
- package/definitions/game/game/entity/skill/SkillManager.d.ts +6 -4
- package/definitions/game/game/entity/status/StatusEffect.d.ts +2 -1
- package/definitions/game/game/island/Island.d.ts +1 -0
- package/definitions/game/renderer/notifier/Notifier.d.ts +1 -1
- package/definitions/test/core/applicationInteractions.d.ts +3 -0
- package/definitions/test/core/chromeDriver.d.ts +2 -1
- package/package.json +1 -1
|
@@ -55,11 +55,11 @@ export default abstract class Human extends Entity implements IHasInsulation {
|
|
|
55
55
|
readonly equipEffects: Map<EquipEffect, EquipEffects>;
|
|
56
56
|
restData: IRestData | undefined;
|
|
57
57
|
score: number;
|
|
58
|
-
skill: SkillManager;
|
|
59
58
|
state: PlayerState;
|
|
60
59
|
swimming: boolean;
|
|
61
60
|
vehicleItemReference: ItemReference | undefined;
|
|
62
61
|
identifier: string;
|
|
62
|
+
skill: SkillManager;
|
|
63
63
|
private readonly privateStore;
|
|
64
64
|
constructor();
|
|
65
65
|
createSkillManager(): SkillManager;
|
|
@@ -13,9 +13,10 @@ import { Stat } from "game/entity/IStats";
|
|
|
13
13
|
import type { IStatHost } from "game/entity/Stats";
|
|
14
14
|
import type Stats from "game/entity/Stats";
|
|
15
15
|
export declare class StatsFactory {
|
|
16
|
-
private readonly host;
|
|
17
16
|
private readonly stats;
|
|
17
|
+
private readonly _host;
|
|
18
18
|
constructor(host: IStatHost);
|
|
19
|
+
private get host();
|
|
19
20
|
/**
|
|
20
21
|
* If the condition is not falsey, runs the initializer on this factory.
|
|
21
22
|
*/
|
|
@@ -17,9 +17,10 @@ export interface IStatHost extends EventEmitter.Host<IStatEvents> {
|
|
|
17
17
|
stats: IStats;
|
|
18
18
|
}
|
|
19
19
|
export default class Stats<T extends IStatHost> {
|
|
20
|
-
private readonly host;
|
|
21
20
|
private get stats();
|
|
21
|
+
private readonly _host;
|
|
22
22
|
constructor(host: T);
|
|
23
|
+
private get host();
|
|
23
24
|
/**
|
|
24
25
|
* Initializes the given stat from a `StatFactory` instance.
|
|
25
26
|
* @param factory The factory to initialize the stat from.
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { IEventEmitter } from "event/EventEmitter";
|
|
12
12
|
import type Doodad from "game/doodad/Doodad";
|
|
13
|
-
import { ActionType } from "game/entity/action/IAction";
|
|
13
|
+
import type { ActionType } from "game/entity/action/IAction";
|
|
14
14
|
import Creature from "game/entity/creature/Creature";
|
|
15
15
|
import { CreatureType } from "game/entity/creature/ICreature";
|
|
16
16
|
import Human from "game/entity/Human";
|
|
@@ -17,13 +17,14 @@ import { QuestType } from "game/entity/player/quest/quest/IQuest";
|
|
|
17
17
|
import type { RequirementInstance } from "game/entity/player/quest/quest/Quest";
|
|
18
18
|
import type { Game } from "game/Game";
|
|
19
19
|
export default class QuestManager extends EventEmitter.Host<IQuestManagerEvents> {
|
|
20
|
-
private readonly host;
|
|
21
20
|
static reset(): void;
|
|
22
21
|
private readonly quests;
|
|
23
22
|
private readonly eventBusTriggers;
|
|
24
23
|
private readonly hostTriggers;
|
|
25
24
|
private readonly initializedQuests;
|
|
25
|
+
private readonly _host;
|
|
26
26
|
constructor(host: Player);
|
|
27
|
+
private get host();
|
|
27
28
|
/**
|
|
28
29
|
* Get all quests
|
|
29
30
|
*/
|
|
@@ -27,14 +27,16 @@ export interface ISkillEvents {
|
|
|
27
27
|
skillChange(skill: SkillType, value: number, oldValue: number): any;
|
|
28
28
|
}
|
|
29
29
|
export declare type SkillSet = Record<SkillType, ISkillLevel>;
|
|
30
|
+
export interface ISkillHost extends EventEmitter.Host<ISkillEvents> {
|
|
31
|
+
readonly island: Island;
|
|
32
|
+
}
|
|
30
33
|
export default class SkillManager {
|
|
31
|
-
private readonly host;
|
|
32
34
|
private readonly configuration;
|
|
33
35
|
private skills;
|
|
34
36
|
private cachedTotalSkill?;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
private readonly _host;
|
|
38
|
+
constructor(host: ISkillHost, configuration: ISkillConfiguration);
|
|
39
|
+
private get host();
|
|
38
40
|
has(skill: SkillType): boolean;
|
|
39
41
|
/**
|
|
40
42
|
* @returns whether the given skill is maxed-out. Ignores bonus.
|
|
@@ -58,8 +58,9 @@ export default abstract class StatusEffect extends EventEmitter.Host<IStatusEffe
|
|
|
58
58
|
readonly type: StatusType;
|
|
59
59
|
static update(effect: StatusEffect): void;
|
|
60
60
|
private registered;
|
|
61
|
-
|
|
61
|
+
private readonly _entity;
|
|
62
62
|
constructor(type: StatusType, entity: Entity | undefined);
|
|
63
|
+
protected get entity(): Entity;
|
|
63
64
|
getOptions(): IGameOptionsStatusEffect;
|
|
64
65
|
register(): void;
|
|
65
66
|
/**
|
|
@@ -91,6 +91,7 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
91
91
|
*/
|
|
92
92
|
readonly players: Set<Player>;
|
|
93
93
|
previousSaveVersion: IVersionInfo | undefined;
|
|
94
|
+
brokenReferencesCount: number;
|
|
94
95
|
civilizationScore: number;
|
|
95
96
|
spawnPoint: IVector3;
|
|
96
97
|
private _loadedReferences;
|
|
@@ -30,7 +30,7 @@ export default class Notifier {
|
|
|
30
30
|
private spriteAtlas;
|
|
31
31
|
constructor(context: RendererContext, capacity: number);
|
|
32
32
|
setResources(resourceContainer: IResourceContainer): void;
|
|
33
|
-
|
|
33
|
+
delete(): void;
|
|
34
34
|
addItem(location: INotificationLocation, itemNotifierType: ItemNotifierType, type: ItemType, _broken?: boolean): void;
|
|
35
35
|
addCreature(location: INotificationLocation, creatureNotifierType: CreatureNotifierType, type: CreatureType, aberrant?: boolean): void;
|
|
36
36
|
addStat(location: INotificationLocation, type: StatNotificationType, value: number): void;
|
|
@@ -14,6 +14,7 @@ import { Direction } from "../../game/utilities/math/Direction";
|
|
|
14
14
|
import type { Random, SeededGenerator } from "../../game/utilities/random/Random";
|
|
15
15
|
import type { INewGameOptions } from "../interfaces";
|
|
16
16
|
import { GameMode } from "../interfaces";
|
|
17
|
+
import type { IslandId } from "../../game/game/island/IIsland";
|
|
17
18
|
import ApplicationDom from "./applicationDom";
|
|
18
19
|
import ApplicationLogger from "./applicationLogger";
|
|
19
20
|
export default class ApplicationInteractions {
|
|
@@ -64,6 +65,8 @@ export default class ApplicationInteractions {
|
|
|
64
65
|
joinMultiplayerDedicatedServer(gameCode: string): Promise<void>;
|
|
65
66
|
pauseGame(): Promise<void>;
|
|
66
67
|
unpauseGame(): Promise<void>;
|
|
68
|
+
moveToIslandId(islandId: IslandId): Promise<void>;
|
|
69
|
+
verifyIslandReferences(islandId: IslandId): Promise<void>;
|
|
67
70
|
getGameStateAsJson(): Promise<string>;
|
|
68
71
|
saveStateAndVerifyWithPrevious(): Promise<void>;
|
|
69
72
|
clearSavedStates(): void;
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
export default class ChromeDriver {
|
|
12
|
+
private readonly appId;
|
|
12
13
|
readonly port: number;
|
|
13
14
|
private process;
|
|
14
15
|
private exitHandler;
|
|
15
|
-
constructor();
|
|
16
|
+
constructor(appId: string);
|
|
16
17
|
start(): Promise<void>;
|
|
17
18
|
stop(): void;
|
|
18
19
|
}
|
package/package.json
CHANGED