@wayward/types 2.15.2-beta.dev.20251115.1 → 2.15.2-beta.dev.20251118.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/IAction.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/RemovePlayer.d.ts +14 -0
- package/definitions/game/game/entity/player/PlayerManager.d.ts +2 -1
- 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/language/dictionary/UiTranslation.d.ts +63 -59
- package/definitions/game/ui/screen/screens/menu/menus/pause/MultiplayerOptionsMenu.d.ts +8 -0
- package/package.json +1 -1
|
@@ -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 {
|
|
@@ -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;
|
|
@@ -71,7 +71,8 @@ export default class PlayerManager extends EventEmitter.Host<IPlayerManagerEvent
|
|
|
71
71
|
* Removes and deletes a player.
|
|
72
72
|
* Use with caution!
|
|
73
73
|
*/
|
|
74
|
-
permanentlyDelete(player: Player): void;
|
|
74
|
+
permanentlyDelete(player: Player, delayForKick?: boolean): void;
|
|
75
|
+
private performPermanentDelete;
|
|
75
76
|
/**
|
|
76
77
|
* Moves to the player to the target array
|
|
77
78
|
* @param source Where they are coming from. It's okay if they aren't in this array
|
|
@@ -72,66 +72,68 @@ export declare enum Prompt {
|
|
|
72
72
|
MenuLoadGameDeleteSaves = 55,
|
|
73
73
|
MenuLoadGameExportType = 56,
|
|
74
74
|
MenuLoadGameImportSaveFailure = 57,
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
75
|
+
MenuMultiplayerOptionsDeletePlayer = 58,
|
|
76
|
+
MenuMultiplayerOptionsDeleteConnectedPlayer = 59,
|
|
77
|
+
MenuLoadGameMissingMod = 60,
|
|
78
|
+
MenuLoadGameOldBuildTime = 61,
|
|
79
|
+
MenuLoadGamePublishError = 62,
|
|
80
|
+
MenuMainWelcomeToVersion = 63,
|
|
81
|
+
MenuMainOldVersionWarning = 64,
|
|
82
|
+
MenuModsConfirmPublish = 65,
|
|
83
|
+
MenuModsConfirmPublishUpdate = 66,
|
|
84
|
+
MenuModsModEnableMultipleLanguages = 67,
|
|
85
|
+
MenuModsModEnableUseLanguage = 68,
|
|
86
|
+
MenuModsPublishedReminderRequiredModsOnWorkshop = 69,
|
|
87
|
+
MenuModsPublishError = 70,
|
|
88
|
+
MenuModsPublishUpdateError = 71,
|
|
89
|
+
MenuModsInfoMissingDependencies = 72,
|
|
90
|
+
MenuModsConfirmEnableDisabledDependencies = 73,
|
|
91
|
+
MenuModsConfirmDisableDependents = 74,
|
|
92
|
+
MenuModsConfirmUninstallMod = 75,
|
|
93
|
+
MenuModsUnloadableSaveGameMod = 76,
|
|
94
|
+
MenuModsSubmenuEditInternalModsModsListChangeReload = 77,
|
|
95
|
+
MenuMultiplayerCannotJoinFailedToLoadMods = 78,
|
|
96
|
+
MenuMultiplayerCannotJoinMissingMods = 79,
|
|
97
|
+
MenuNewGameTooManySaves = 80,
|
|
98
|
+
MenuCustomGameOptionsConfirmImport = 81,
|
|
99
|
+
MenuCustomGameOptionsImportFailure = 82,
|
|
100
|
+
MenuMilestoneModifiersConfirmImport = 83,
|
|
101
|
+
MenuMilestoneModifiersImportFailure = 84,
|
|
102
|
+
MenuOptionsReloadGame = 85,
|
|
103
|
+
MenuOptionsChangeReload = 86,
|
|
104
|
+
MenuOptionsChangeSteamBeta = 87,
|
|
105
|
+
MenuOptionsConfirmUnlockMilestones = 88,
|
|
106
|
+
MenuOptionsConfirmDiscoverActions = 89,
|
|
107
|
+
MenuOptionsConfirmUnlockRecipes = 90,
|
|
108
|
+
MenuOptionsSaveDataClearAll = 91,
|
|
109
|
+
MenuOptionsSaveDataClearCharacters = 92,
|
|
110
|
+
MenuOptionsSaveDataClearUI = 93,
|
|
111
|
+
MenuOptionsSaveDataClearHighscores = 94,
|
|
112
|
+
MenuOptionsSaveDataClearMilestones = 95,
|
|
113
|
+
MenuOptionsSaveDataClearOptions = 96,
|
|
114
|
+
MenuOptionsSaveDataClearSaves = 97,
|
|
115
|
+
MenuOptionsSaveDataClearCraftingRecipes = 98,
|
|
116
|
+
MenuOptionsSaveDataClearBindings = 99,
|
|
117
|
+
MenuOptionsConfirmImportGlobalData = 100,
|
|
118
|
+
MenuPauseGhostKeepSave = 101,
|
|
119
|
+
MenuPauseReturnToTitleScreen = 102,
|
|
120
|
+
MenuPauseReturnToTitleScreenChallenge = 103,
|
|
121
|
+
MenuPauseReturnToTitleScreenChallengeMultiplayer = 104,
|
|
122
|
+
MenuPauseReturnToTitleScreenMultiplayer = 105,
|
|
123
|
+
MultiplayerFailedToConnect = 106,
|
|
124
|
+
MultiplayerRestartServerAfterLoadingSave = 107,
|
|
125
|
+
MultiplayerDisconnect = 108,
|
|
126
|
+
MultiplayerDisconnectRejoin = 109,
|
|
127
|
+
MultiplayerServerHasUnpublishedMods = 110,
|
|
128
|
+
SteamworksURLOpenedInBrowser = 111,
|
|
129
|
+
SteamworksWorkshopOpenedInBrowser = 112,
|
|
130
|
+
SteamworksModWithNameAlreadyExists = 113,
|
|
131
|
+
SteamworksModImportSaveGameFailure = 114,
|
|
132
|
+
SteamworksModImportedSaveGame = 115,
|
|
133
|
+
SteamworksOpenFolderFailure = 116,
|
|
134
|
+
SteamworksModPublishModJsonUpdateFailed = 117,
|
|
135
|
+
SteamworksNotAvailableOnSteamDeck = 118,
|
|
136
|
+
UiSaveDrop = 119
|
|
135
137
|
}
|
|
136
138
|
export declare enum PromptType {
|
|
137
139
|
Info = 0,
|
|
@@ -77,6 +77,8 @@ export declare const promptMenuGameEndReturnToTitleScreenChallenge: import("@way
|
|
|
77
77
|
export declare const promptMenuGameEndReturnToTitleScreenMultiplayer: import("@wayward/game/game/meta/prompt/IPrompt").IPromptConfirmDescription<[playersConnected: number]>;
|
|
78
78
|
export declare const promptMenuLoadGameDeleteSave: import("@wayward/game/game/meta/prompt/IPrompt").IPromptConfirmDescription<[name?: string | undefined]>;
|
|
79
79
|
export declare const promptMenuLoadGameDeleteSaves: import("@wayward/game/game/meta/prompt/IPrompt").IPromptConfirmDescription<[deleteCount: number]>;
|
|
80
|
+
export declare const promptMenuMultiplayerOptionsDeletePlayer: import("@wayward/game/game/meta/prompt/IPrompt").IPromptConfirmDescription<[name: string]>;
|
|
81
|
+
export declare const promptMenuMultiplayerOptionsDeleteConnectedPlayer: import("@wayward/game/game/meta/prompt/IPrompt").IPromptConfirmDescription<[name: string]>;
|
|
80
82
|
export declare const promptMenuLoadGameImportSaveFailure: import("@wayward/game/game/meta/prompt/IPrompt").IPromptInfoDescription<[succeeded: Text[], failed: Text[], unknownErrors: boolean]>;
|
|
81
83
|
export declare const promptMenuLoadGameExportType: import("@wayward/game/game/meta/prompt/IPrompt").IPromptChoiceDescription<any[], (InterruptChoice.Cancel | InterruptChoice.LocalFile | InterruptChoice.SteamWorkshop)[]>;
|
|
82
84
|
export declare const promptMenuLoadGameMissingMod: import("@wayward/game/game/meta/prompt/IPrompt").IPromptConfirmDescription<[missingMods: string[], disabledMods: string[]]>;
|
|
@@ -865,64 +865,68 @@ declare enum UiTranslation {
|
|
|
865
865
|
MenuMultiplayerOptionsCheckConnectionResultWebSocketFail = 850,
|
|
866
866
|
MenuMultiplayerOptionsCheckConnectionResultWebSocketUnavailable = 851,
|
|
867
867
|
MenuMultiplayerOptionsCheckConnectionResultSuccess = 852,
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
868
|
+
MenuMultiplayerOptionsPlayerManagementHeading = 853,
|
|
869
|
+
MenuMultiplayerOptionsConnectedPlayersHeading = 854,
|
|
870
|
+
MenuMultiplayerOptionsAbsentPlayersHeading = 855,
|
|
871
|
+
MenuMultiplayerOptionsDeletePlayerTooltip = 856,
|
|
872
|
+
MenuJoinServerTitle = 857,
|
|
873
|
+
MenuJoinServerDescription = 858,
|
|
874
|
+
MenuJoinServerInputPlaceholder = 859,
|
|
875
|
+
MenuJoinServerChooseModifiersTitle = 860,
|
|
876
|
+
MenuJoinServerChooseModifiersDescription = 861,
|
|
877
|
+
MenuSharedMultiplayerChoiceLobbyTypeFriends = 862,
|
|
878
|
+
MenuSharedMultiplayerChoiceLobbyTypeFriendsDescription = 863,
|
|
879
|
+
MenuSharedMultiplayerChoiceLobbyTypePublic = 864,
|
|
880
|
+
MenuSharedMultiplayerChoiceLobbyTypePublicDescription = 865,
|
|
881
|
+
MenuSharedMultiplayerChoiceLobbyTypePrivate = 866,
|
|
882
|
+
MenuSharedMultiplayerChoiceLobbyTypePrivateDescription = 867,
|
|
883
|
+
MenuSharedMultiplayerChoicePVP = 868,
|
|
884
|
+
MenuSharedMultiplayerChoicePVPDescription = 869,
|
|
885
|
+
MenuSharedMultiplayerChoiceAllowTraveling = 870,
|
|
886
|
+
MenuSharedMultiplayerChoiceAllowTravelingDescription = 871,
|
|
887
|
+
MenuSharedMultiplayerChoiceAllowHardcoreRespawns = 872,
|
|
888
|
+
MenuSharedMultiplayerChoiceAllowHardcoreRespawnsDescription = 873,
|
|
889
|
+
MenuSharedMultiplayerChoicePauseOnDesync = 874,
|
|
890
|
+
MenuSharedMultiplayerChoicePauseOnDesyncDescription = 875,
|
|
891
|
+
MenuSharedMultiplayerDescription = 876,
|
|
892
|
+
MenuSharedMultiplayerMessageOfTheDay = 877,
|
|
893
|
+
MenuSharedMultiplayerMaxPlayers = 878,
|
|
894
|
+
MenuSharedRealTimeTickSpeedTooltip = 879,
|
|
895
|
+
MenuSharedRealTimeTickSpeedLabel = 880,
|
|
896
|
+
MenuSharedButtonDefault = 881,
|
|
897
|
+
MenuSharedValueSeconds = 882,
|
|
898
|
+
MenuSharedValueMilliseconds = 883,
|
|
899
|
+
MenuSharedValuePercentage = 884,
|
|
900
|
+
MenuSharedMilestonesNotUnlockable = 885,
|
|
901
|
+
MenuSharedMilestonesNotUnlockableDescription = 886,
|
|
902
|
+
MenuSharedMilestonesNotUnlockableButtonShowMods = 887,
|
|
903
|
+
MenuSharedButtonDisableAll = 888,
|
|
904
|
+
MenuSharedButtonEnableAll = 889,
|
|
905
|
+
MenuSharedMilestoneModifiersSelected = 890,
|
|
906
|
+
MiscSortBy = 891,
|
|
907
|
+
MiscSortCustom = 892,
|
|
908
|
+
MiscSortDirection = 893,
|
|
909
|
+
MiscFilter = 894,
|
|
910
|
+
MiscNone = 895,
|
|
911
|
+
MiscPlayerNameDefault = 896,
|
|
912
|
+
MiscPlayerNameServer = 897,
|
|
913
|
+
MiscSaveNameDefault = 898,
|
|
914
|
+
MiscSaveNameDailyChallenge = 899,
|
|
915
|
+
MiscSaveNameChallenge = 900,
|
|
916
|
+
MiscSaveVersionUnknown = 901,
|
|
917
|
+
MiscVersion = 902,
|
|
918
|
+
MiscVersionBuildInfoTooltip = 903,
|
|
919
|
+
MiscVersionUpdate = 904,
|
|
920
|
+
MiscTime = 905,
|
|
921
|
+
MiscTimeMeridiem = 906,
|
|
922
|
+
MiscError = 907,
|
|
923
|
+
MiscContextMenuCopyTooltip = 908,
|
|
924
|
+
MiscBindableNoBindings = 909,
|
|
925
|
+
MiscBindingIcon = 910,
|
|
926
|
+
MiscBindingIconThen = 911,
|
|
927
|
+
TabCrafting = 912,
|
|
928
|
+
TabDismantle = 913,
|
|
929
|
+
WindowTitleContainer = 914,
|
|
930
|
+
WindowTitleInventory = 915
|
|
927
931
|
}
|
|
928
932
|
export default UiTranslation;
|
|
@@ -30,6 +30,12 @@ export default class MultiplayerOptionsMenu extends Menu {
|
|
|
30
30
|
private readonly checkConnectionHeading;
|
|
31
31
|
private readonly checkConnectionBlock;
|
|
32
32
|
private readonly checkConnectionButton;
|
|
33
|
+
private readonly playerManagementHeading;
|
|
34
|
+
private readonly playerManagementBlock;
|
|
35
|
+
private readonly connectedPlayersHeading;
|
|
36
|
+
private readonly connectedPlayersContainer;
|
|
37
|
+
private readonly absentPlayersHeading;
|
|
38
|
+
private readonly absentPlayersContainer;
|
|
33
39
|
constructor();
|
|
34
40
|
protected refresh(): void;
|
|
35
41
|
private updateMultiplayer;
|
|
@@ -39,4 +45,6 @@ export default class MultiplayerOptionsMenu extends Menu {
|
|
|
39
45
|
private copyGameCodeClick;
|
|
40
46
|
private inviteSteamFriendsClick;
|
|
41
47
|
private refreshSteamNetworkConnection;
|
|
48
|
+
private refreshPlayerLists;
|
|
49
|
+
private deletePlayer;
|
|
42
50
|
}
|
package/package.json
CHANGED