bc-stubs 104.0.2 → 105.0.0
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/bc/Female3DCG_Types.d.ts +5 -1
- package/bc/Messages.d.ts +25 -5
- package/bc/Screens/Character/Login/Login.d.ts +6 -6
- package/bc/Screens/Character/Preference/Preference.d.ts +20 -7
- package/bc/Screens/MiniGame/ClubCard/ClubCard.d.ts +52 -3
- package/bc/Screens/Online/ChatRoom/ChatRoom.d.ts +36 -42
- package/bc/Screens/Online/ChatRoom/ChatRoomMapView.d.ts +2 -6
- package/bc/Screens/Online/ChatRoom/Commands.d.ts +2 -2
- package/bc/Screens/Online/ChatSearch/ChatSearch.d.ts +8 -1
- package/bc/Screens/Room/Crafting/Crafting.d.ts +5 -0
- package/bc/Screens/Room/Platform/Platform.d.ts +299 -80
- package/bc/Screens/Room/PlatformDialog/PlatformDialog.d.ts +208 -0
- package/bc/Screens/Room/Shop2/Shop2.d.ts +9 -2
- package/bc/Scripts/Asset.d.ts +48 -6
- package/bc/Scripts/Common.d.ts +1 -14
- package/bc/Scripts/Element.d.ts +116 -10
- package/bc/Scripts/Game.d.ts +1 -5
- package/bc/Scripts/Inventory.d.ts +26 -5
- package/bc/Scripts/Layering.d.ts +13 -2
- package/bc/Scripts/Server.d.ts +13 -3
- package/bc/Typedef.d.ts +60 -28
- package/package.json +1 -1
package/bc/Female3DCG_Types.d.ts
CHANGED
|
@@ -435,9 +435,13 @@ interface AssetCommonPropertiesAssetLayer {
|
|
|
435
435
|
|
|
436
436
|
/** Input interface for constructing {@link Asset} objects. */
|
|
437
437
|
interface AssetDefinitionBase extends AssetCommonPropertiesGroupAsset, AssetCommonPropertiesAssetLayer, AssetCommonPropertiesGroupAssetLayer {
|
|
438
|
+
|
|
438
439
|
/** The asset's internal name. */
|
|
439
440
|
Name: string,
|
|
440
441
|
|
|
442
|
+
/** The asset's InventoryID to be synced with the server and other players */
|
|
443
|
+
InventoryID?: number,
|
|
444
|
+
|
|
441
445
|
/**
|
|
442
446
|
* The group name and asset name of a configuration to copy.
|
|
443
447
|
* Useful if multiple items share the same config.
|
|
@@ -543,7 +547,7 @@ interface AssetDefinitionBase extends AssetCommonPropertiesGroupAsset, AssetComm
|
|
|
543
547
|
* A value of -1 makes the asset unavailable, a value of 0 makes it always available.
|
|
544
548
|
*/
|
|
545
549
|
Value?: number;
|
|
546
|
-
|
|
550
|
+
|
|
547
551
|
/**
|
|
548
552
|
* Whether an item should never be able to be sold.
|
|
549
553
|
*
|
package/bc/Messages.d.ts
CHANGED
|
@@ -42,15 +42,16 @@ interface ServerAccountData extends ServerAccountImmutableData {
|
|
|
42
42
|
LabelColor?: string;
|
|
43
43
|
Appearance?: ServerAppearanceBundle;
|
|
44
44
|
Description?: string;
|
|
45
|
-
BlockItems?:
|
|
46
|
-
LimitedItems?:
|
|
47
|
-
FavoriteItems?:
|
|
48
|
-
HiddenItems?:
|
|
45
|
+
BlockItems?: ServerItemPermissionsPacked | ServerItemPermissions[];
|
|
46
|
+
LimitedItems?: ServerItemPermissionsPacked | ServerItemPermissions[];
|
|
47
|
+
FavoriteItems?: ServerItemPermissionsPacked | ServerItemPermissions[];
|
|
48
|
+
HiddenItems?: ServerItemPermissions[];
|
|
49
49
|
Title?: TitleName;
|
|
50
50
|
Nickname?: string;
|
|
51
51
|
Crafting?: string;
|
|
52
52
|
/** String-based values have been deprecated as of BondageProjects/Bondage-College#2138 */
|
|
53
53
|
Inventory?: string | Partial<Record<AssetGroupName, string[]>>;
|
|
54
|
+
InventoryData?: string;
|
|
54
55
|
AssetFamily?: "Female3DCG";
|
|
55
56
|
Infiltration?: InfiltrationType;
|
|
56
57
|
SavedColors?: HSVColor[];
|
|
@@ -128,12 +129,31 @@ type ServerAccountDataNoDeprecated = ServerAccountData & { [k in ServerAccountDa
|
|
|
128
129
|
Inventory?: Partial<Record<AssetGroupName, string[]>>;
|
|
129
130
|
};
|
|
130
131
|
|
|
132
|
+
/**
|
|
133
|
+
* A struct for representing an item with special permissions (limited, favorited, etc) in the server.
|
|
134
|
+
* @see {@link ServerItemPermissionsPacked}
|
|
135
|
+
*/
|
|
136
|
+
interface ServerItemPermissions {
|
|
137
|
+
/** The {@link Asset.Name} of the item */
|
|
138
|
+
Name: string;
|
|
139
|
+
/** The {@link AssetGroup.Name} of the item */
|
|
140
|
+
Group: AssetGroupName;
|
|
141
|
+
/**
|
|
142
|
+
* Either the item's {@link ItemProperties.Type} or, in the case of modular items,
|
|
143
|
+
* a substring thereof denoting the type of a single module
|
|
144
|
+
*/
|
|
145
|
+
Type?: string | null;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/** A packed record-based version of {@link ServerItemPermissions}. */
|
|
149
|
+
type ServerItemPermissionsPacked = Partial<Record<AssetGroupName, Record<string, (undefined | null | string)[]>>>;
|
|
150
|
+
|
|
131
151
|
interface ServerMapDataResponse {
|
|
132
152
|
MemberNumber: number;
|
|
133
153
|
MapData: ChatRoomMapPos;
|
|
134
154
|
}
|
|
135
155
|
|
|
136
|
-
type ServerAccountDataSynced = Omit<ServerAccountData, "Money" | "FriendList">;
|
|
156
|
+
type ServerAccountDataSynced = Omit<ServerAccountData, "Money" | "FriendList" | "AccountName">;
|
|
137
157
|
|
|
138
158
|
interface ServerOwnership {
|
|
139
159
|
MemberNumber?: number;
|
|
@@ -87,11 +87,6 @@ declare function LoginCheatItems(): void;
|
|
|
87
87
|
* @returns {void} Nothing
|
|
88
88
|
*/
|
|
89
89
|
declare function LoginValideBuyGroups(): void;
|
|
90
|
-
/**
|
|
91
|
-
* Checks if the player arrays contains any item that does not exists and saves them.
|
|
92
|
-
* @returns {void} Nothing
|
|
93
|
-
*/
|
|
94
|
-
declare function LoginValidateArrays(): void;
|
|
95
90
|
/**
|
|
96
91
|
* Makes sure the difficulty restrictions are applied to the player
|
|
97
92
|
* @param {boolean} applyDefaults - If changing to the difficulty, set this to True to set LimitedItems to the default settings
|
|
@@ -105,9 +100,14 @@ declare function LoginDifficulty(applyDefaults: boolean): void;
|
|
|
105
100
|
* @returns {void} Nothing
|
|
106
101
|
*/
|
|
107
102
|
declare function LoginExtremeItemSettings(applyDefaults: boolean): void;
|
|
103
|
+
/**
|
|
104
|
+
* Since InventoryData wasn't found (R104 and before), we load the inventory object directly
|
|
105
|
+
* @param {object} InventoryObject - The inventory object from the server
|
|
106
|
+
*/
|
|
107
|
+
declare function LoginLoadInventoryObject(InventoryObject: object): {};
|
|
108
108
|
/**
|
|
109
109
|
* Handles server response, when login has been queued
|
|
110
|
-
* @param {number} Pos The position in queue
|
|
110
|
+
* @param {number} Pos - The position in queue
|
|
111
111
|
*/
|
|
112
112
|
declare function LoginQueue(Pos: number): void;
|
|
113
113
|
/**
|
|
@@ -380,10 +380,11 @@ declare function PreferenceVisibilityHideChange(): void;
|
|
|
380
380
|
declare function PreferenceVisibilityBlockChange(): void;
|
|
381
381
|
/**
|
|
382
382
|
* Adds or removes the current item to/from the list based on the new state of the corresponding checkbox
|
|
383
|
-
* @param {
|
|
383
|
+
* @param {Partial<Record<`${AssetGroupName}/${string}`, ItemPermissions>>} permissionRecord - The record to add or remove the item from
|
|
384
384
|
* @param {boolean} CheckSetting - The new true/false setting of the checkbox
|
|
385
|
+
* @param {"Hidden" | "Block"} Type
|
|
385
386
|
*/
|
|
386
|
-
declare function PreferenceVisibilityCheckboxChanged(
|
|
387
|
+
declare function PreferenceVisibilityCheckboxChanged(permissionRecord: Partial<Record<`${AssetGroupName}/${string}`, ItemPermissions>>, CheckSetting: boolean, Type: "Hidden" | "Block"): void;
|
|
387
388
|
/**
|
|
388
389
|
* Saves changes to the settings, disposes of large lists & exits the visibility preference screen.
|
|
389
390
|
* @param {boolean} SaveChanges - If TRUE, update HiddenItems and BlockItems for the account
|
|
@@ -573,6 +574,11 @@ declare function PreferenceSubscreenExtensionsClear(): void;
|
|
|
573
574
|
* @returns {void} - Nothing
|
|
574
575
|
*/
|
|
575
576
|
declare function PreferenceValidateArousalData(C: Character): void;
|
|
577
|
+
/**
|
|
578
|
+
* Return a new object with default item permissions
|
|
579
|
+
* @returns {ItemPermissions} - The item permissions
|
|
580
|
+
*/
|
|
581
|
+
declare function PreferencePermissionGetDefault(): ItemPermissions;
|
|
576
582
|
declare var PreferenceBackground: string;
|
|
577
583
|
declare var PreferenceMessage: string;
|
|
578
584
|
declare var PreferenceSafewordConfirm: boolean;
|
|
@@ -640,7 +646,16 @@ declare var PreferenceArousalFetishList: null | FetishName[];
|
|
|
640
646
|
declare var PreferenceArousalFetishIndex: number;
|
|
641
647
|
/** @type {ArousalFactor} */
|
|
642
648
|
declare var PreferenceArousalFetishFactor: ArousalFactor;
|
|
643
|
-
|
|
649
|
+
/** @type {{ Group: AssetGroup, Assets: { Asset: Asset, Hidden: boolean, Blocked: boolean, Limited: boolean }[] }[]} */
|
|
650
|
+
declare var PreferenceVisibilityGroupList: {
|
|
651
|
+
Group: AssetGroup;
|
|
652
|
+
Assets: {
|
|
653
|
+
Asset: Asset;
|
|
654
|
+
Hidden: boolean;
|
|
655
|
+
Blocked: boolean;
|
|
656
|
+
Limited: boolean;
|
|
657
|
+
}[];
|
|
658
|
+
}[];
|
|
644
659
|
declare var PreferenceVisibilityGroupIndex: number;
|
|
645
660
|
declare var PreferenceVisibilityAssetIndex: number;
|
|
646
661
|
declare var PreferenceVisibilityHideChecked: boolean;
|
|
@@ -648,10 +663,8 @@ declare var PreferenceVisibilityBlockChecked: boolean;
|
|
|
648
663
|
declare var PreferenceVisibilityCanBlock: boolean;
|
|
649
664
|
/** @type {null | Asset} */
|
|
650
665
|
declare var PreferenceVisibilityPreviewAsset: null | Asset;
|
|
651
|
-
/** @type {ItemPermissions
|
|
652
|
-
declare var
|
|
653
|
-
/** @type {ItemPermissions[]} */
|
|
654
|
-
declare var PreferenceVisibilityBlockList: ItemPermissions[];
|
|
666
|
+
/** @type {Partial<Record<`${AssetGroupName}/${string}`, ItemPermissions>>} */
|
|
667
|
+
declare var PreferenceVisibilityRecord: Partial<Record<`${AssetGroupName}/${string}`, ItemPermissions>>;
|
|
655
668
|
declare var PreferenceVisibilityResetClicked: boolean;
|
|
656
669
|
/** @type {null | number} */
|
|
657
670
|
declare var PreferenceDifficultyLevel: null | number;
|
|
@@ -52,6 +52,13 @@ declare function ClubCardIsLiability(Card: ClubCard): boolean;
|
|
|
52
52
|
* @returns {ClubCardPlayer} - The opponent
|
|
53
53
|
*/
|
|
54
54
|
declare function ClubCardGetOpponent(CCPlayer?: ClubCardPlayer | null): ClubCardPlayer;
|
|
55
|
+
/**
|
|
56
|
+
* Gets the opponent of the parameter player or the player that's not on it's turn if null
|
|
57
|
+
* @param {ClubCardPlayer} CCPlayer - The club card player or null
|
|
58
|
+
* @param {Number} turnCounter
|
|
59
|
+
* @returns {ClubCard[]} - The opponent
|
|
60
|
+
*/
|
|
61
|
+
declare function ClubCardGetCardsPlayedOnTurn(CCPlayer: ClubCardPlayer, turnCounter: number): ClubCard[];
|
|
55
62
|
/**
|
|
56
63
|
* Adds money to the club card player stats
|
|
57
64
|
* @param {ClubCardPlayer} CCPlayer - The club card player
|
|
@@ -68,10 +75,10 @@ declare function ClubCardPlayerAddMoney(CCPlayer: ClubCardPlayer, Amount: number
|
|
|
68
75
|
declare function ClubCardPlayerAddFame(CCPlayer: ClubCardPlayer, Amount: number): void;
|
|
69
76
|
/**
|
|
70
77
|
* Raises the level of player
|
|
71
|
-
* @param {
|
|
78
|
+
* @param {ClubCardPlayer} CCPlayer - The club card player
|
|
72
79
|
* @returns {void} - Nothing
|
|
73
80
|
*/
|
|
74
|
-
declare function ClubCardUpgradeLevel(CCPlayer:
|
|
81
|
+
declare function ClubCardUpgradeLevel(CCPlayer: ClubCardPlayer): void;
|
|
75
82
|
/**
|
|
76
83
|
* Returns TRUE if a card (by name) is currently present on a board
|
|
77
84
|
* @param {ClubCardPlayer} CCPlayer - The club card player
|
|
@@ -93,6 +100,12 @@ declare function ClubCardNameIsOnBoard(CCPlayer: ClubCardPlayer, CardName: strin
|
|
|
93
100
|
* @returns {boolean} - TRUE if at least one card from that group is present
|
|
94
101
|
*/
|
|
95
102
|
declare function ClubCardGroupIsOnBoard(CCPlayer: ClubCardPlayer, GroupName: string): boolean;
|
|
103
|
+
/**
|
|
104
|
+
* @param {ClubCard} card to evaluate group
|
|
105
|
+
* @param {string} GroupName group name to find
|
|
106
|
+
* @returns {boolean} - True if the card has the group
|
|
107
|
+
*/
|
|
108
|
+
declare function ClubCardCardHasGroup(card: ClubCard, GroupName: string): boolean;
|
|
96
109
|
/**
|
|
97
110
|
* Returns the number of cards of a specific group found on a board
|
|
98
111
|
* @param {ClubCardPlayer} CCPlayer - The club card player
|
|
@@ -107,6 +120,20 @@ declare function ClubCardGroupOnBoardCount(CCPlayer: ClubCardPlayer, GroupName:
|
|
|
107
120
|
* @returns {void} - Nothing
|
|
108
121
|
*/
|
|
109
122
|
declare function ClubCardRemoveFromBoard(CCPlayer: ClubCardPlayer, Card: ClubCard): void;
|
|
123
|
+
/**
|
|
124
|
+
* Gets the max effect a card should have depending on its "tier"/required level to play
|
|
125
|
+
* @param {ClubCard} Card
|
|
126
|
+
* @param {number} fame
|
|
127
|
+
* @returns {number} max effect card should have
|
|
128
|
+
*/
|
|
129
|
+
declare function ClubCardGetMaxEffectFromCard(Card: ClubCard, fame: number): number;
|
|
130
|
+
/**
|
|
131
|
+
* Adds a card to a players hand
|
|
132
|
+
* @param {ClubCardPlayer} CCPlayer - The club card player
|
|
133
|
+
* @param {ClubCard} Card - The card object to add
|
|
134
|
+
* @returns {void} - Nothing
|
|
135
|
+
*/
|
|
136
|
+
declare function ClubCardAddToHand(CCPlayer: ClubCardPlayer, Card: ClubCard): void;
|
|
110
137
|
/**
|
|
111
138
|
* Removes several cards from player time events
|
|
112
139
|
* @param {ClubCardPlayer} CCPlayer - The club card player
|
|
@@ -147,6 +174,27 @@ declare function ClubCardSetGlow(Card: ClubCard, Color: string): void;
|
|
|
147
174
|
* @returns {void} - Nothing
|
|
148
175
|
*/
|
|
149
176
|
declare function ClubCardPlayerDrawCard(CCPlayer: ClubCardPlayer, Amount?: number | null): void;
|
|
177
|
+
/**
|
|
178
|
+
* Draw cards from the player deck into it's hand
|
|
179
|
+
* @param {ClubCardPlayer} CCPlayer - The club card player that draws the cards
|
|
180
|
+
* @param {string} group - The group to draw from
|
|
181
|
+
* @returns {boolean} - if cards were drawn or not
|
|
182
|
+
*/
|
|
183
|
+
declare function ClubCardPlayerDrawGroupCard(CCPlayer: ClubCardPlayer, group: string): boolean;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @param {ClubCardPlayer} CCPlayer - The club card player that draws the cards
|
|
187
|
+
* @returns {void} - Nothing
|
|
188
|
+
*
|
|
189
|
+
*/
|
|
190
|
+
declare function ClubCardCheckDetectiveDraw(CCPlayer: ClubCardPlayer): void;
|
|
191
|
+
/**
|
|
192
|
+
* Common place to handle Alvins effect on kidnapping and Restrain
|
|
193
|
+
* @param {ClubCardPlayer} CCPlayer
|
|
194
|
+
* @returns {void} - Nothing
|
|
195
|
+
*
|
|
196
|
+
*/
|
|
197
|
+
declare function ClubCardAlvinCondition(CCPlayer: ClubCardPlayer): void;
|
|
150
198
|
/**
|
|
151
199
|
* Removes cards from a player hand
|
|
152
200
|
* @param {ClubCardPlayer} CCPlayer - The club card player that discards
|
|
@@ -388,7 +436,8 @@ declare var ClubCardTurnCardPlayed: number;
|
|
|
388
436
|
declare var ClubCardTurnEndDraw: boolean;
|
|
389
437
|
declare var ClubCardFameGoal: number;
|
|
390
438
|
declare var ClubCardPopup: any;
|
|
391
|
-
|
|
439
|
+
/** @type {ClubCard} */
|
|
440
|
+
declare var ClubCardSelection: ClubCard;
|
|
392
441
|
declare var ClubCardPending: any;
|
|
393
442
|
declare var ClubCardLevelLimit: number[];
|
|
394
443
|
declare var ClubCardLevelCost: number[];
|
|
@@ -303,9 +303,9 @@ declare function DialogCanCallMaidsPunishmentOn(): boolean;
|
|
|
303
303
|
declare function DialogCanCallMaidsPunishmentOff(): boolean;
|
|
304
304
|
/**
|
|
305
305
|
* Creates the chat room input elements.
|
|
306
|
-
* @returns {
|
|
306
|
+
* @returns {HTMLDivElement}
|
|
307
307
|
*/
|
|
308
|
-
declare function ChatRoomCreateElement():
|
|
308
|
+
declare function ChatRoomCreateElement(): HTMLDivElement;
|
|
309
309
|
/** Hide the UI elements of the chatroom screen */
|
|
310
310
|
declare function ChatRoomShowElements(): void;
|
|
311
311
|
/** Show the UI elements of the chatroom screen */
|
|
@@ -414,10 +414,6 @@ declare function ChatRoomSetLastChatRoom(room: ChatRoom | null): void;
|
|
|
414
414
|
* @returns {void} - Nothing.
|
|
415
415
|
*/
|
|
416
416
|
declare function ChatRoomStimulationMessage(Action: StimulationAction): void;
|
|
417
|
-
/**
|
|
418
|
-
* Called when screen size or position changes or after screen load
|
|
419
|
-
* @param {boolean} load - If the reason for call was load (`true`) or window resize (`false`)
|
|
420
|
-
*/
|
|
421
417
|
declare function ChatRoomResize(load: boolean): void;
|
|
422
418
|
/**
|
|
423
419
|
* Draws arousal screen filter
|
|
@@ -473,9 +469,10 @@ declare function ChatRoomStatusUpdate(Status: string | null): void;
|
|
|
473
469
|
declare function ChatRoomStatusUpdateTalk(Key: KeyboardEvent): void;
|
|
474
470
|
/**
|
|
475
471
|
* Handler called when the chat input field changes
|
|
472
|
+
* @this {HTMLTextAreaElement}
|
|
476
473
|
* @param {Event} event
|
|
477
474
|
*/
|
|
478
|
-
declare function ChatRoomChatInputChangeHandler(event: Event): void;
|
|
475
|
+
declare function ChatRoomChatInputChangeHandler(this: HTMLTextAreaElement, event: Event): void;
|
|
479
476
|
/**
|
|
480
477
|
* Checks if status has expired or is otherwise no longer valid and resets status if so
|
|
481
478
|
* @returns {void} - Nothing.
|
|
@@ -491,11 +488,7 @@ declare function ChatRoomCustomizationClear(): void;
|
|
|
491
488
|
* @returns {void} - Nothing.
|
|
492
489
|
*/
|
|
493
490
|
declare function ChatRoomCustomizationRun(): void;
|
|
494
|
-
|
|
495
|
-
* Runs the chatroom screen.
|
|
496
|
-
* @returns {void} - Nothing.
|
|
497
|
-
*/
|
|
498
|
-
declare function ChatRoomRun(): void;
|
|
491
|
+
declare function ChatRoomRun(time: number): void;
|
|
499
492
|
/**
|
|
500
493
|
* Runs the arousal overlay.
|
|
501
494
|
* @returns {boolean} - Returns true if the orgasm overlay is active and false otherwise.
|
|
@@ -529,17 +522,7 @@ declare function ChatRoomMouseUp(event: MouseEvent | TouchEvent): void;
|
|
|
529
522
|
* @returns {void} - Nothing
|
|
530
523
|
*/
|
|
531
524
|
declare function ChatRoomMouseMove(event: MouseEvent | TouchEvent): void;
|
|
532
|
-
|
|
533
|
-
* Redirects the Mouse Wheel event to the map if needed
|
|
534
|
-
* @param {MouseEvent | TouchEvent} event
|
|
535
|
-
* @returns {void} - Nothing
|
|
536
|
-
*/
|
|
537
|
-
declare function ChatRoomMouseWheel(event: MouseEvent | TouchEvent): void;
|
|
538
|
-
/**
|
|
539
|
-
* Handles clicks the chatroom screen.
|
|
540
|
-
* @param {MouseEvent | TouchEvent} event
|
|
541
|
-
* @returns {void} - Nothing.
|
|
542
|
-
*/
|
|
525
|
+
declare function ChatRoomMouseWheel(event: WheelEvent): void;
|
|
543
526
|
declare function ChatRoomClick(event: MouseEvent | TouchEvent): void;
|
|
544
527
|
/**
|
|
545
528
|
* The handler for the "Kneel" top menu button
|
|
@@ -557,11 +540,7 @@ declare function ChatRoomOpenInformationScreen(): void;
|
|
|
557
540
|
* The handler for the "Admin" button
|
|
558
541
|
*/
|
|
559
542
|
declare function ChatRoomOpenAdminScreen(): void;
|
|
560
|
-
|
|
561
|
-
* Process chat room menu button clicks
|
|
562
|
-
* @returns {void} - Nothing
|
|
563
|
-
*/
|
|
564
|
-
declare function ChatRoomMenuClick(): void;
|
|
543
|
+
declare function ChatRoomMenuClick(event: MouseEvent | TouchEvent): void;
|
|
565
544
|
declare function ChatRoomAttemptStandMinigameEnd(): void;
|
|
566
545
|
/**
|
|
567
546
|
* Checks if the player can leave the chatroom.
|
|
@@ -837,6 +816,10 @@ declare function ChatRoomMessageRunHandlers(type: "pre" | "post", data: ServerCh
|
|
|
837
816
|
* @returns {void} - Nothing.
|
|
838
817
|
*/
|
|
839
818
|
declare function ChatRoomMessage(data: ServerChatRoomMessage): void;
|
|
819
|
+
/**
|
|
820
|
+
* @this {HTMLButtonElement}
|
|
821
|
+
*/
|
|
822
|
+
declare function ChatRoomMessageNameClick(this: HTMLButtonElement): void;
|
|
840
823
|
/**
|
|
841
824
|
* Update the Chat log with the recieved message
|
|
842
825
|
*
|
|
@@ -844,9 +827,9 @@ declare function ChatRoomMessage(data: ServerChatRoomMessage): void;
|
|
|
844
827
|
* @param {string} msg
|
|
845
828
|
* @param {Character} SenderCharacter
|
|
846
829
|
* @param {IChatRoomMessageMetadata} metadata
|
|
847
|
-
* @returns {
|
|
830
|
+
* @returns {HTMLDivElement}
|
|
848
831
|
*/
|
|
849
|
-
declare function ChatRoomMessageDisplay(data: ServerChatRoomMessage, msg: string, SenderCharacter: Character, metadata: IChatRoomMessageMetadata):
|
|
832
|
+
declare function ChatRoomMessageDisplay(data: ServerChatRoomMessage, msg: string, SenderCharacter: Character, metadata: IChatRoomMessageMetadata): HTMLDivElement;
|
|
850
833
|
/**
|
|
851
834
|
* Whether to replace message details which reveal information about an unseen/unheard character
|
|
852
835
|
* @param {Character} C - The character whose identity should remain unknown
|
|
@@ -1028,12 +1011,6 @@ declare function ChatRoomAdminChatAction(ActionType: "Ban" | "Unban" | "Kick" |
|
|
|
1028
1011
|
* @returns {string} - The player's current local time as a string.
|
|
1029
1012
|
*/
|
|
1030
1013
|
declare function ChatRoomCurrentTime(): string;
|
|
1031
|
-
/**
|
|
1032
|
-
* Gets a transparent version of the specified hex color.
|
|
1033
|
-
* @param {HexColor} Color - Hex color code.
|
|
1034
|
-
* @returns {string} - A transparent version of the specified hex color in the rgba format.
|
|
1035
|
-
*/
|
|
1036
|
-
declare function ChatRoomGetTransparentColor(Color: HexColor): string;
|
|
1037
1014
|
/**
|
|
1038
1015
|
* Adds or removes an online member to/from a specific list. (From the dialog menu)
|
|
1039
1016
|
* @param {"Add" | "Remove"} Operation - Operation to perform.
|
|
@@ -1364,19 +1341,24 @@ declare var ChatRoomSlowtimer: number;
|
|
|
1364
1341
|
declare var ChatRoomSlowStop: boolean;
|
|
1365
1342
|
/**
|
|
1366
1343
|
* Default position of the chat log field
|
|
1367
|
-
* @
|
|
1344
|
+
* @deprecated - superseded by and incorporated into {@link ChatRoomDivRect}
|
|
1368
1345
|
*/
|
|
1369
|
-
declare var ChatRoomChatLogRect:
|
|
1346
|
+
declare var ChatRoomChatLogRect: never;
|
|
1370
1347
|
/**
|
|
1371
1348
|
* Default position of the chat input field
|
|
1372
|
-
* @
|
|
1349
|
+
* @deprecated - superseded by and incorporated into {@link ChatRoomDivRect}
|
|
1373
1350
|
*/
|
|
1374
|
-
declare var ChatRoomChatInputRect:
|
|
1351
|
+
declare var ChatRoomChatInputRect: never;
|
|
1375
1352
|
/**
|
|
1376
1353
|
* Default position of the chat input length label
|
|
1354
|
+
* @deprecated - superseded by and incorporated into {@link ChatRoomDivRect}
|
|
1355
|
+
*/
|
|
1356
|
+
declare var ChatRoomChatLengthLabelRect: never;
|
|
1357
|
+
/**
|
|
1358
|
+
* Default position of the entire chat panel
|
|
1377
1359
|
* @type {RectTuple}
|
|
1378
1360
|
*/
|
|
1379
|
-
declare var
|
|
1361
|
+
declare var ChatRoomDivRect: RectTuple;
|
|
1380
1362
|
declare var ChatRoomChatHidden: boolean;
|
|
1381
1363
|
/**
|
|
1382
1364
|
* The chatroom characters that were drawn in the last frame.
|
|
@@ -1512,7 +1494,19 @@ declare namespace ChatRoomResizeManager {
|
|
|
1512
1494
|
function ChatRoomResizeEvent(): void;
|
|
1513
1495
|
function ChatRoomResizeEventsEnd(): void;
|
|
1514
1496
|
}
|
|
1515
|
-
declare
|
|
1497
|
+
declare namespace ChatRoomSep {
|
|
1498
|
+
let ActiveElem: null | HTMLDivElement;
|
|
1499
|
+
let _ClickCollapse: (this: HTMLButtonElement, event: MouseEvent | TouchEvent) => Promise<void>;
|
|
1500
|
+
let _ClickScrollUp: (this: HTMLButtonElement, event: MouseEvent | TouchEvent) => Promise<void>;
|
|
1501
|
+
function _GetDisplayName(button: HTMLButtonElement): string;
|
|
1502
|
+
function Create(appendChat?: boolean): HTMLDivElement;
|
|
1503
|
+
function GetDisplayName(roomSep: HTMLDivElement): string;
|
|
1504
|
+
function IsCollapsed(roomSep: HTMLDivElement): boolean;
|
|
1505
|
+
function Uncollapse(roomSep: HTMLDivElement): Promise<void>;
|
|
1506
|
+
function Collapse(roomSep: HTMLDivElement): Promise<void>;
|
|
1507
|
+
function SetRoomData(roomSep: HTMLDivElement, data: Pick<ServerChatRoomData, "Name" | "Private" | "Space">): Promise<void>;
|
|
1508
|
+
function UpdateDisplayNames(): Promise<void>;
|
|
1509
|
+
}
|
|
1516
1510
|
declare let ChatRoomStatusDeadKeys: string[];
|
|
1517
1511
|
/** When slowed, we can't leave quicker than this */
|
|
1518
1512
|
declare const ChatRoomSlowLeaveMinTime: 5000;
|
|
@@ -41,7 +41,7 @@ declare function ChatRoomMapViewDeactivate(): void;
|
|
|
41
41
|
* @returns {boolean} - TRUE if the chat room character view is active, false if not
|
|
42
42
|
*/
|
|
43
43
|
declare function ChatRoomMapViewIsActive(): boolean;
|
|
44
|
-
declare function ChatRoomMapViewRun(): void;
|
|
44
|
+
declare function ChatRoomMapViewRun(time: number): void;
|
|
45
45
|
/**
|
|
46
46
|
* Alter the received message to what will be displayed in the chat log
|
|
47
47
|
*
|
|
@@ -319,11 +319,7 @@ declare function ChatRoomMapViewMouseMove(): void;
|
|
|
319
319
|
* @returns {void} - Nothing
|
|
320
320
|
*/
|
|
321
321
|
declare function ChatRoomMapViewMouseUp(): void;
|
|
322
|
-
|
|
323
|
-
* Mouse wheel event is used to zoom the map
|
|
324
|
-
* @returns {void} - Nothing
|
|
325
|
-
*/
|
|
326
|
-
declare function ChatRoomMapViewMouseWheel(Event: any): void;
|
|
322
|
+
declare function ChatRoomMapViewMouseWheel(event: WheelEvent): void;
|
|
327
323
|
/**
|
|
328
324
|
* Copies the current map in the clipboard. Called from the chat field command "mapcopy"
|
|
329
325
|
* @returns {void} - Nothing
|
|
@@ -28,8 +28,8 @@ declare function CommandCombine(add: ICommand | ICommand[]): void;
|
|
|
28
28
|
/**
|
|
29
29
|
* Parse the input chat message
|
|
30
30
|
* @param {string} msg - Input string, cannot be empty
|
|
31
|
-
* @returns {string|boolean} a de-escaped string if msg looks like an
|
|
32
|
-
*
|
|
31
|
+
* @returns {string | boolean} a (de-escaped) string if msg looks like an normal message,
|
|
32
|
+
* true if a command successfully executed, false otherwise.
|
|
33
33
|
*/
|
|
34
34
|
declare function CommandParse(msg: string): string | boolean;
|
|
35
35
|
/**
|
|
@@ -218,7 +218,14 @@ declare var ChatSearchResult: (ServerChatRoomSearchData & {
|
|
|
218
218
|
})[];
|
|
219
219
|
/** @type {typeof ChatSearchResult} */
|
|
220
220
|
declare var ChatSearchHiddenResult: typeof ChatSearchResult;
|
|
221
|
-
|
|
221
|
+
/** @type {null | { Query: string, Language: "" | ServerChatRoomLanguage, Space: ServerChatRoomSpace, Game: ServerChatRoomGame, FullRooms: boolean }} */
|
|
222
|
+
declare var ChatSearchLastSearchDataJSON: null | {
|
|
223
|
+
Query: string;
|
|
224
|
+
Language: "" | ServerChatRoomLanguage;
|
|
225
|
+
Space: ServerChatRoomSpace;
|
|
226
|
+
Game: ServerChatRoomGame;
|
|
227
|
+
FullRooms: boolean;
|
|
228
|
+
};
|
|
222
229
|
declare var ChatSearchLastQuerySearchTime: number;
|
|
223
230
|
declare var ChatSearchLastQueryJoin: string;
|
|
224
231
|
declare var ChatSearchLastQueryJoinTime: number;
|
|
@@ -40,6 +40,11 @@ declare function CraftingResize(load: boolean): void;
|
|
|
40
40
|
* @returns {void}
|
|
41
41
|
*/
|
|
42
42
|
declare function CraftingUpdateFromItem(item: Item): void;
|
|
43
|
+
/**
|
|
44
|
+
* Return a list of all searchable asset names.
|
|
45
|
+
* @returns {string[]}
|
|
46
|
+
*/
|
|
47
|
+
declare function CraftingGetAllAssetNames(): string[];
|
|
43
48
|
/**
|
|
44
49
|
* Sets the new mode and creates or removes the inputs
|
|
45
50
|
* @param {CraftingMode} NewMode - The new mode to set
|