@wayward/types 2.11.1-beta.dev.20211231.2 → 2.11.1-beta.dev.20220101.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.
|
@@ -74,31 +74,32 @@ export declare enum MultiplayerSyncCheck {
|
|
|
74
74
|
Merchant = 36,
|
|
75
75
|
MilestoneSeed = 37,
|
|
76
76
|
Misc = 38,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
77
|
+
Modifier = 39,
|
|
78
|
+
MoveToTile = 40,
|
|
79
|
+
PenaltyFieldHashCode = 41,
|
|
80
|
+
PlaceOnTile = 42,
|
|
81
|
+
PlayerManager = 43,
|
|
82
|
+
PlayerPositions = 44,
|
|
83
|
+
Players = 45,
|
|
84
|
+
PlayerSetup = 46,
|
|
85
|
+
Random = 47,
|
|
86
|
+
Reputation = 48,
|
|
87
|
+
Seed = 49,
|
|
88
|
+
SeededGenerator = 50,
|
|
89
|
+
SkillGain = 51,
|
|
90
|
+
StaminaChanges = 52,
|
|
91
|
+
StatChange = 53,
|
|
92
|
+
Stats = 54,
|
|
93
|
+
StatusChange = 55,
|
|
94
|
+
StatusEffect = 56,
|
|
95
|
+
SyncChecks = 57,
|
|
96
|
+
TemperatureManager = 58,
|
|
97
|
+
Temporary = 59,
|
|
98
|
+
Tick = 60,
|
|
99
|
+
TileEvent = 61,
|
|
100
|
+
Time = 62,
|
|
101
|
+
UpdateDirection = 63,
|
|
102
|
+
Weight = 64
|
|
102
103
|
}
|
|
103
104
|
export declare const maxPlayers = 32;
|
|
104
105
|
export declare const packetTickRate = 16;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import type { Stat } from "../../game/game/entity/IStats";
|
|
13
13
|
import { Direction } from "../../game/utilities/math/Direction";
|
|
14
14
|
import type { Random, SeededGenerator } from "../../game/utilities/random/Random";
|
|
15
|
-
import type { IDedicatedServerGameOptions, INewGameOptions } from "../interfaces";
|
|
15
|
+
import type { IDedicatedServerGameOptions, IJoinServerOptions, INewGameOptions } from "../interfaces";
|
|
16
16
|
import type { IslandId } from "../../game/game/island/IIsland";
|
|
17
17
|
import ApplicationDom from "./applicationDom";
|
|
18
18
|
import ApplicationLogger from "./applicationLogger";
|
|
@@ -67,8 +67,7 @@ export default class ApplicationInteractions {
|
|
|
67
67
|
waitForGameEndScreen(isWinner: boolean): Promise<void>;
|
|
68
68
|
returnToTitleScreen(): Promise<void>;
|
|
69
69
|
getServerGameCode(): Promise<string>;
|
|
70
|
-
joinMultiplayerServer(gameCode: string): Promise<void>;
|
|
71
|
-
joinMultiplayerDedicatedServer(gameCode: string): Promise<void>;
|
|
70
|
+
joinMultiplayerServer(gameCode: string, options: IJoinServerOptions, isDedicatedServer: boolean): Promise<void>;
|
|
72
71
|
pauseGame(): Promise<void>;
|
|
73
72
|
unpauseGame(): Promise<void>;
|
|
74
73
|
moveToIslandId(islandId: IslandId): Promise<void>;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type Player from "../../game/game/entity/player/Player";
|
|
12
12
|
import { Direction } from "../../game/utilities/math/Direction";
|
|
13
|
-
import type { INewGameOptions } from "../interfaces";
|
|
13
|
+
import type { IJoinServerOptions, INewGameOptions } from "../interfaces";
|
|
14
14
|
import type { IDifferences } from "../../game/utilities/object/JsonHelper";
|
|
15
15
|
import type Application from "./application";
|
|
16
16
|
import type { ITestState } from "./application";
|
|
@@ -65,7 +65,7 @@ export declare class Apps {
|
|
|
65
65
|
createMultiplayerGame(options: Omit<INewGameOptions, "playMode">): Promise<void>;
|
|
66
66
|
setClientJoinIsland(x: number, y: number): Promise<void>;
|
|
67
67
|
getServerGameCode(): Promise<string>;
|
|
68
|
-
joinServer(...apps: Application[]): Promise<void>;
|
|
68
|
+
joinServer(options: IJoinServerOptions, ...apps: Application[]): Promise<void>;
|
|
69
69
|
leaveServer(...apps: Application[]): Promise<void>;
|
|
70
70
|
returnToTitleScreen(): Promise<void>;
|
|
71
71
|
waitUntilLoadingIsFinished(): Promise<void>;
|
|
@@ -18,6 +18,10 @@ export interface INewGameOptions extends ICommonGameOptions {
|
|
|
18
18
|
reuseCharacter?: boolean;
|
|
19
19
|
}
|
|
20
20
|
export declare type IDedicatedServerGameOptions = ICommonGameOptions;
|
|
21
|
+
export interface IJoinServerOptions {
|
|
22
|
+
joinProgrammatically: boolean;
|
|
23
|
+
enableAllMilestoneModifiers?: boolean;
|
|
24
|
+
}
|
|
21
25
|
export declare enum GameMode {
|
|
22
26
|
Hardcore = "Hardcore Mode",
|
|
23
27
|
Casual = "Casual Mode",
|
package/package.json
CHANGED
package/tsconfig.mod.base.json
CHANGED
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"removeComments": true,
|
|
13
13
|
"strict": true,
|
|
14
14
|
"strictPropertyInitialization": false,
|
|
15
|
-
|
|
15
|
+
// classic is required for auto imports to use the shortest path in vscode
|
|
16
|
+
"moduleResolution": "classic",
|
|
16
17
|
"paths": {
|
|
17
18
|
"*": [
|
|
18
19
|
"node_modules/@wayward/types/definitions/game/*"
|
|
@@ -22,6 +23,15 @@
|
|
|
22
23
|
],
|
|
23
24
|
"@hosts/*": [
|
|
24
25
|
"node_modules/@wayward/types/definitions/hosts/*"
|
|
26
|
+
],
|
|
27
|
+
// required when using classic module resolution
|
|
28
|
+
"@wayward/goodstream": [
|
|
29
|
+
"node_modules/@wayward/goodstream/Stream",
|
|
30
|
+
"node_modules/@wayward/types/node_modules/@wayward/goodstream/Stream"
|
|
31
|
+
],
|
|
32
|
+
"@wayward/goodstream/*": [
|
|
33
|
+
"node_modules/@wayward/goodstream/*",
|
|
34
|
+
"node_modules/@wayward/types/node_modules/@wayward/goodstream/*"
|
|
25
35
|
]
|
|
26
36
|
},
|
|
27
37
|
"types": [],
|