@wayward/types 2.11.1-beta.dev.20220102.1 → 2.11.1-beta.dev.20220103.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.
@@ -25,6 +25,8 @@ import type { Milestone } from "game/milestones/IMilestone";
25
25
  import type { IGameOptions } from "game/options/IGameOptions";
26
26
  import { GameMode } from "game/options/IGameOptions";
27
27
  import type { ChallengeModifiersCollection } from "game/options/modifiers/challenge/ChallengeModifiers";
28
+ import type { GameplayModifiersCollection } from "game/options/modifiers/GameplayModifiersManager";
29
+ import type MilestoneModifier from "game/options/modifiers/milestone/MilestoneModifier";
28
30
  import ReferenceManager from "game/reference/ReferenceManager";
29
31
  import TimeManager from "game/time/TimeManager";
30
32
  import VotingManager from "game/VotingManager";
@@ -70,7 +72,7 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
70
72
  mapSizeSq: number;
71
73
  readonly itemStylesheetHandler: ItemStylesheetHandler | undefined;
72
74
  readonly voting: VotingManager;
73
- readonly milestonesCollection: import("./options/modifiers/GameplayModifiersManager").GameplayModifiersCollection<import("./options/modifiers/milestone/MilestoneModifier").default, Milestone, import("./options/modifiers/milestone/MilestoneModifier").MilestoneModifierInstance, []>;
75
+ milestonesCollection?: GameplayModifiersCollection<MilestoneModifier, Milestone>;
74
76
  challengeCollection?: ChallengeModifiersCollection;
75
77
  debugRenderer: ITextureDebugRenderer | undefined;
76
78
  webGlContext: WebGlContext | undefined;
@@ -82,6 +84,7 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
82
84
  private gameOptionsCached?;
83
85
  private synchronizeStateId;
84
86
  protected stringTokenizer: StringTokenizer | undefined;
87
+ toString(): string;
85
88
  get isPaused(): boolean;
86
89
  initializeRenderer(): void;
87
90
  globalSlotReady(): void;
@@ -105,6 +105,7 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
105
105
  modifiersCollection?: IslandModifiersCollection;
106
106
  details?: IIslandDetails;
107
107
  constructor(position?: IVector2, seed?: number);
108
+ toString(): string;
108
109
  private registerMemoryLeakDetector;
109
110
  preSerializeObject(serializer: ISerializer): void;
110
111
  onUnserialized(): void;
@@ -10,6 +10,7 @@
10
10
  */
11
11
  import type GameplayModifier from "game/options/modifiers/GameplayModifier";
12
12
  import type { GameplayModifierInstance, GetModifierId, GetModifierInstance, GetModifierInstanceArgs } from "game/options/modifiers/GameplayModifier";
13
+ import type { StringableObject } from "utilities/object/Objects";
13
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
15
  private readonly enumObject;
15
16
  private readonly classes;
@@ -26,8 +27,8 @@ export declare class GameplayModifiersCollection<MODIFIER extends GameplayModifi
26
27
  protected readonly args: INSTANCE_ARGS;
27
28
  constructor(manager: GameplayModifiersManager<MODIFIER>, ...args: INSTANCE_ARGS);
28
29
  hasAny(): boolean;
29
- initialize(id: ID): INSTANCE | undefined;
30
- uninitialize(): void;
30
+ initialize(source: StringableObject, ids: Iterable<ID>): INSTANCE[];
31
+ uninitialize(source: StringableObject): void;
31
32
  options(): import("@wayward/goodstream").default<import("../IGameOptions").IGameOptionsPartial>;
32
33
  initialized(): IterableIterator<ID>;
33
34
  }
@@ -15,6 +15,7 @@ import type Tooltip from "ui/tooltip/Tooltip";
15
15
  export declare const EXCLUSIVE_MODIFIERS: Challenge[][];
16
16
  declare class ChallengeModifiersManager extends GameplayModifiersManager<ChallengeModifier> {
17
17
  constructor();
18
+ toString(): string;
18
19
  createCollection(seed?: number): ChallengeModifiersCollection;
19
20
  }
20
21
  declare const _default: ChallengeModifiersManager;
@@ -26,61 +26,62 @@ export declare enum LogSource {
26
26
  FileDataStorage = 13,
27
27
  FlowFieldManager = 14,
28
28
  Game = 15,
29
- GarbageCollection = 16,
30
- HookManager = 17,
31
- IndexedDBDataStorage = 18,
32
- Input = 19,
33
- InputManager = 20,
34
- InterModRegistryManager = 21,
35
- Island = 22,
36
- ItemManager = 23,
37
- ItemReference = 24,
38
- ItemStylesheet = 25,
39
- Languages = 26,
40
- Loading = 27,
41
- LocalStorageDataStorage = 28,
42
- MapGen = 29,
43
- Matchmaking = 30,
44
- MatchmakingServer = 31,
45
- MemoryLeakDetector = 32,
46
- Message = 33,
47
- Mod = 34,
48
- Mods = 35,
49
- Multiplayer = 36,
50
- NPC = 37,
51
- NPCManager = 38,
52
- OldUi = 39,
53
- Packet = 40,
54
- Player = 41,
55
- PlayerManager = 42,
56
- Prompts = 43,
57
- Reflow = 44,
58
- Renderer = 45,
59
- ReplayManager = 46,
60
- ResourceLoader = 47,
61
- SaveManager = 48,
62
- Serializer = 49,
63
- Shaders = 50,
64
- SoundEffect = 51,
65
- SpritePack = 52,
66
- SshCommandManager = 53,
67
- SshServer = 54,
68
- Steamworks = 55,
69
- StringTokenizer = 56,
70
- TemperatureManager = 57,
71
- TileEventManager = 58,
72
- TileUpdate = 59,
73
- Timer = 60,
74
- Trello = 61,
75
- Ui = 62,
76
- Utilities = 63,
77
- WebAssembly = 64,
78
- WebGlContext = 65,
79
- WebRTCConnection = 66,
80
- WebSocketConnection = 67,
81
- World = 68,
82
- WorldLayerRenderer = 69,
83
- WorldRenderer = 70
29
+ GameplayModifier = 16,
30
+ GarbageCollection = 17,
31
+ HookManager = 18,
32
+ IndexedDBDataStorage = 19,
33
+ Input = 20,
34
+ InputManager = 21,
35
+ InterModRegistryManager = 22,
36
+ Island = 23,
37
+ ItemManager = 24,
38
+ ItemReference = 25,
39
+ ItemStylesheet = 26,
40
+ Languages = 27,
41
+ Loading = 28,
42
+ LocalStorageDataStorage = 29,
43
+ MapGen = 30,
44
+ Matchmaking = 31,
45
+ MatchmakingServer = 32,
46
+ MemoryLeakDetector = 33,
47
+ Message = 34,
48
+ Mod = 35,
49
+ Mods = 36,
50
+ Multiplayer = 37,
51
+ NPC = 38,
52
+ NPCManager = 39,
53
+ OldUi = 40,
54
+ Packet = 41,
55
+ Player = 42,
56
+ PlayerManager = 43,
57
+ Prompts = 44,
58
+ Reflow = 45,
59
+ Renderer = 46,
60
+ ReplayManager = 47,
61
+ ResourceLoader = 48,
62
+ SaveManager = 49,
63
+ Serializer = 50,
64
+ Shaders = 51,
65
+ SoundEffect = 52,
66
+ SpritePack = 53,
67
+ SshCommandManager = 54,
68
+ SshServer = 55,
69
+ Steamworks = 56,
70
+ StringTokenizer = 57,
71
+ TemperatureManager = 58,
72
+ TileEventManager = 59,
73
+ TileUpdate = 60,
74
+ Timer = 61,
75
+ Trello = 62,
76
+ Ui = 63,
77
+ Utilities = 64,
78
+ WebAssembly = 65,
79
+ WebGlContext = 66,
80
+ WebRTCConnection = 67,
81
+ WebSocketConnection = 68,
82
+ World = 69,
83
+ WorldLayerRenderer = 70,
84
+ WorldRenderer = 71
84
85
  }
85
86
  export declare enum LogLineType {
86
87
  Debug = 0,
@@ -71,6 +71,7 @@ export declare class Apps {
71
71
  waitUntilLoadingIsFinished(): Promise<void>;
72
72
  randomInput(count: number): Promise<void>;
73
73
  moveToTowardsIsland(app: Application, direction: Direction.Cardinal, recoverStats?: boolean): Promise<void>;
74
+ recoverStats(app: Application): Promise<void>;
74
75
  moveAndVerifyTicks(app: Application, direction: Direction.Cardinal): Promise<void>;
75
76
  waitForClientConsistency(): Promise<void>;
76
77
  sailToCivilization(winnerApp: Application): Promise<void>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.11.1-beta.dev.20220102.1",
4
+ "version": "2.11.1-beta.dev.20220103.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",