bc-stubs 109.0.0 → 110.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.
Files changed (37) hide show
  1. package/bc/NativeDeclarations/Messages.d.ts +2 -2
  2. package/bc/NativeDeclarations/Typedef.d.ts +21 -1
  3. package/bc/Screens/Character/Appearance/Appearance.d.ts +0 -4
  4. package/bc/Screens/Character/BackgroundSelection/BackgroundSelection.d.ts +2 -2
  5. package/bc/Screens/Character/Cheat/Cheat.d.ts +0 -4
  6. package/bc/Screens/Character/Creation/Creation.d.ts +0 -4
  7. package/bc/Screens/Character/InformationSheet/InformationSheet.d.ts +0 -4
  8. package/bc/Screens/Character/Login/Login.d.ts +0 -4
  9. package/bc/Screens/Character/PasswordReset/PasswordReset.d.ts +0 -4
  10. package/bc/Screens/Character/Preference/Preference.d.ts +0 -5
  11. package/bc/Screens/Character/Relog/Relog.d.ts +2 -5
  12. package/bc/Screens/Character/Title/Title.d.ts +0 -4
  13. package/bc/Screens/Character/Wardrobe/Wardrobe.d.ts +0 -4
  14. package/bc/Screens/MiniGame/ClubCard/ClubCard.d.ts +83 -10
  15. package/bc/Screens/Online/AdvancedRule/AdvancedRule.d.ts +0 -4
  16. package/bc/Screens/Online/ChatAdmin/ChatAdmin.d.ts +0 -4
  17. package/bc/Screens/Online/ChatAdminRoomCustomization/ChatAdminRoomCustomization.d.ts +0 -4
  18. package/bc/Screens/Online/ChatBlockItem/ChatBlockItem.d.ts +0 -4
  19. package/bc/Screens/Online/ChatCreate/ChatCreate.d.ts +3 -18
  20. package/bc/Screens/Online/ChatRoom/ChatRoom.d.ts +1 -0
  21. package/bc/Screens/Online/ChatSearch/ChatSearch.d.ts +3 -18
  22. package/bc/Screens/Online/ForbiddenWords/ForbiddenWords.d.ts +0 -4
  23. package/bc/Screens/Online/GameClubCard/GameClubCard.d.ts +0 -4
  24. package/bc/Screens/Online/GameLARP/GameLARP.d.ts +0 -4
  25. package/bc/Screens/Online/GameMagicBattle/GameMagicBattle.d.ts +0 -4
  26. package/bc/Screens/Online/NicknameManagement/NicknameManagement.d.ts +1 -1
  27. package/bc/Screens/Room/AsylumEntrance/AsylumEntrance.d.ts +0 -4
  28. package/bc/Screens/Room/Crafting/Crafting.d.ts +4 -1
  29. package/bc/Screens/Room/InfiltrationPerks/InfiltrationPerks.d.ts +0 -4
  30. package/bc/Screens/Room/PlatformProfile/PlatformProfile.d.ts +0 -4
  31. package/bc/Screens/Room/Private/Private.d.ts +3 -5
  32. package/bc/Screens/Room/PrivateBed/PrivateBed.d.ts +0 -4
  33. package/bc/Scripts/Character.d.ts +3 -1
  34. package/bc/Scripts/ColorPicker.d.ts +6 -0
  35. package/bc/Scripts/Element.d.ts +2 -1
  36. package/bc/Scripts/Inventory.d.ts +2 -2
  37. package/package.json +1 -1
@@ -815,7 +815,7 @@ interface ServerChatRoomGameCardGameStartRequest {
815
815
  Player2: number;
816
816
  }
817
817
 
818
- type ServerChatRoomGameCardGameActionRequest = { GameProgress: "Action" } & ({ CCLog: string } | { CCData: any });
818
+ type ServerChatRoomGameCardGameActionRequest = { GameProgress: "Action" } & ({ CCLog: any } | { CCData: any });
819
819
 
820
820
  type ServerChatRoomGameCardGameUpdateRequest = ServerChatRoomGameCardGameStartRequest | ServerChatRoomGameCardGameQueryRequest | ServerChatRoomGameCardGameActionRequest;
821
821
 
@@ -845,7 +845,7 @@ interface ServerChatRoomGameResponse extends ServerChatRoomMessageBase {
845
845
  Player1?: number;
846
846
  Player2?: number;
847
847
  CCData: [any];
848
- CCLog: string;
848
+ CCLog: [any];
849
849
  };
850
850
  RNG: number;
851
851
  }
@@ -965,7 +965,7 @@ interface Asset {
965
965
  readonly AllowHideItem?: readonly string[];
966
966
  /** @deprecated */
967
967
  readonly AllowTypes?: never;
968
- readonly AllowTighten?: boolean;
968
+ readonly AllowTighten: boolean;
969
969
  /**
970
970
  * The default color of the item: an array of length {@link Asset.ColorableLayerCount} consisting of {@link AssetGroup.DefaultColor} and/or valid color hex codes.
971
971
  */
@@ -3612,6 +3612,7 @@ type CraftingMode = (
3612
3612
  | "Name"
3613
3613
  | "Color"
3614
3614
  | "Extended"
3615
+ | "Tighten"
3615
3616
  | "OverridePriority"
3616
3617
  );
3617
3618
 
@@ -3668,6 +3669,12 @@ interface CraftingItem {
3668
3669
  * Only relevant if the player is the craft's owner but do they not own the underlying item (_e.g._ due to an inventory wipe).
3669
3670
  */
3670
3671
  Disabled?: boolean;
3672
+ /**
3673
+ * A tighten-/loosen-specific modifier to-be added to the base difficulty[1] of the item
3674
+ *
3675
+ * [1] The sum of the asset difficulty, `Bondage` skill modifier and crafted property `Secure`/`Loose` modifiers.
3676
+ */
3677
+ DifficultyFactor?: number;
3671
3678
  }
3672
3679
 
3673
3680
  /**
@@ -3679,6 +3686,12 @@ interface CraftingItemSelected {
3679
3686
  Name: string;
3680
3687
  /** The custom item description. */
3681
3688
  Description: string;
3689
+ /**
3690
+ * A tighten-/loosen-specific modifier to-be added to the base difficulty[1] of the item
3691
+ *
3692
+ * [1] The sum of the asset difficulty, `Bondage` skill modifier and crafted property `Secure`/`Loose` modifiers.
3693
+ */
3694
+ DifficultyFactor: number;
3682
3695
  /** The comma-separated color(s) of the item. */
3683
3696
  Color: string;
3684
3697
  /** The names of the crafted item's supported assets. */
@@ -4152,6 +4165,13 @@ interface ClubCardPlayer {
4152
4165
  CardsPlayedThisTurn: Record<number, ClubCard[]>
4153
4166
  }
4154
4167
 
4168
+ interface ClubCardMessage {
4169
+ Message: string,
4170
+ MessageType: string,
4171
+ PlayerId: string,
4172
+ TurnCounter: number
4173
+ }
4174
+
4155
4175
  // #region drawing
4156
4176
 
4157
4177
  /** Drawing options for an item's preview box */
@@ -244,10 +244,6 @@ declare function AppearanceClick(): void;
244
244
  * @returns {void} - Nothing
245
245
  */
246
246
  declare function AppearanceMenuClick(C: Character): void;
247
- /**
248
- * Handle the exiting of the appearance screen. The function name is created dynamically.
249
- * @returns {void} - Nothing
250
- */
251
247
  declare function AppearanceExit(): void;
252
248
  /**
253
249
  * Common cleanup that must happen when the appearance editor closes
@@ -60,10 +60,10 @@ declare function BackgroundSelectionKeyDown(event: KeyboardEvent): boolean;
60
60
  /**
61
61
  * Handles the exit of the selection screen. Sets the new background, if necessary, and
62
62
  * calls the previously defined callback function. Then exits the screen to the screen, the player was before
63
+ * @satisfies {ScreenFunctions["Exit"]}
63
64
  * @param {boolean} SetBackground - Defines, wether the background must be changed (true) or not (false)
64
- * @returns {void} - Nothing
65
65
  */
66
- declare function BackgroundSelectionExit(SetBackground: boolean): void;
66
+ declare function BackgroundSelectionExit(SetBackground?: boolean): void;
67
67
  declare var BackgroundSelectionBackground: string;
68
68
  /** @type {string[]} */
69
69
  declare var BackgroundSelectionList: string[];
@@ -36,10 +36,6 @@ declare function CheatRun(): void;
36
36
  * @returns {void} - Nothing
37
37
  */
38
38
  declare function CheatClick(): void;
39
- /**
40
- * Handles exiting the cheat screen by saving the cheats and going back to the login screen.
41
- * @returns {void} - Nothing
42
- */
43
39
  declare function CheatExit(): void;
44
40
  declare var CheatBackground: string;
45
41
  declare var CheatAllow: boolean;
@@ -24,10 +24,6 @@ declare function CreationResponse(data: ServerAccountCreateResponse): void;
24
24
  * @returns {void} - Nothing
25
25
  */
26
26
  declare function CreationClick(): void;
27
- /**
28
- * Does the cleanup, if the user exits the screen
29
- * @returns {void} - Nothing
30
- */
31
27
  declare function CreationExit(): void;
32
28
  declare var CreationBackground: string;
33
29
  declare var CreationMessage: string;
@@ -19,10 +19,6 @@ declare function InformationSheetSecondScreenRun(): void;
19
19
  * @returns {void} - Nothing
20
20
  */
21
21
  declare function InformationSheetClick(): void;
22
- /**
23
- * Cleanup all elements, if the user exits the screen
24
- * @returns {void} - Nothing
25
- */
26
22
  declare function InformationSheetExit(): void;
27
23
  /**
28
24
  * Loads the information sheet for a character
@@ -158,10 +158,6 @@ declare function LoginUpdateMessage(): void;
158
158
  * @returns {string} The key of the message to display
159
159
  */
160
160
  declare function LoginGetMessageKey(): string;
161
- /**
162
- * Exit function - called when leaving the login page
163
- * @returns {void} - Nothing
164
- */
165
161
  declare function LoginExit(): void;
166
162
  declare var LoginBackground: string;
167
163
  declare var LoginMessage: string;
@@ -19,10 +19,6 @@ declare function PasswordResetResponse(msg: ServerPasswordResetResponse): void;
19
19
  * @returns {void} Nothing
20
20
  */
21
21
  declare function PasswordResetClick(): void;
22
- /**
23
- * Sends the player back to the login screen
24
- * @returns {void} Nothing
25
- */
26
22
  declare function PasswordResetExit(): void;
27
23
  declare var PasswordResetBackground: string;
28
24
  declare var PasswordResetMessage: string;
@@ -15,11 +15,6 @@ declare function PreferenceRun(): void;
15
15
  * @returns {void} - Nothing
16
16
  */
17
17
  declare function PreferenceClick(): void;
18
- /**
19
- * Is called when the player exits the preference screen. All settings of the preference screen are sent to the server.
20
- * If the player is in a subscreen, they exit to the main preferences menu instead.
21
- * @returns {void} - Nothing
22
- */
23
18
  declare function PreferenceExit(): void;
24
19
  /**
25
20
  * Exit from a specific subscreen by running its handler and checking its validity
@@ -19,16 +19,13 @@ declare function RelogKeyDown(event: KeyboardEvent): boolean;
19
19
  * @returns {void} Nothing
20
20
  */
21
21
  declare function RelogSend(): void;
22
- /**
23
- * Sends the player back to the main login screen
24
- * @returns {void} Nothing
25
- */
26
22
  declare function RelogExit(): void;
27
23
  declare var RelogBackground: string;
28
24
  declare var RelogCanvas: HTMLCanvasElement;
29
- /** @type {null | { Screen: string, Module: ModuleType, Character: Character }} */
25
+ /** @type {null | { Screen: string, Module: ModuleType, Character: Character, ChatRoomName: string | null}} */
30
26
  declare var RelogData: null | {
31
27
  Screen: string;
32
28
  Module: ModuleType;
33
29
  Character: Character;
30
+ ChatRoomName: string | null;
34
31
  };
@@ -39,10 +39,6 @@ declare function TitleRun(): void;
39
39
  * @returns {void} - Nothing
40
40
  */
41
41
  declare function TitleClick(): void;
42
- /**
43
- * Exits the title selection screen and brings the player back to the InformationSheet
44
- * @returns {void} - Nothing
45
- */
46
42
  declare function TitleExit(): void;
47
43
  declare var TitleBackground: string;
48
44
  /** @type {{ Name: TitleName; Requirement: () => boolean; Earned?: boolean, Force?: boolean }[]} */
@@ -42,10 +42,6 @@ declare function WardrobeClick(): void;
42
42
  * @param {WardrobeReorderType} newmode - The mode to set. If null, advance to next mode.
43
43
  */
44
44
  declare function WardrobeReorderModeSet(newmode?: WardrobeReorderType): void;
45
- /**
46
- * Exits the wardorbe screen and sends the player back to her private room
47
- * @returns {void} - Nothing
48
- */
49
45
  declare function WardrobeExit(): void;
50
46
  /**
51
47
  * Set a wardrobe character name, sync it with server
@@ -10,20 +10,50 @@ declare function ClubCardIsOnline(): boolean;
10
10
  declare function ClubCardIsPlaying(): boolean;
11
11
  /**
12
12
  * Adds a text entry to the game log
13
- * @param {string} LogEntry - The club card player
13
+ * @param {ClubCardMessage[]} LogEntry - Message Packet with message and messageType
14
14
  * @param {boolean} Push - The club card player
15
15
  * @returns {void} - Nothing
16
16
  */
17
- declare function ClubCardLogAdd(LogEntry: string, Push?: boolean): void;
17
+ declare function ClubCardLogAdd(LogEntry: ClubCardMessage[], Push?: boolean): void;
18
+ /**
19
+ * Adds a message to the message storage.
20
+ * @param {string} Message
21
+ * @param {string} MessageType - ClubCardStartTurnType
22
+ */
23
+ declare function ClubCardMessagePacketAdd(Message: string, MessageType: string): void;
24
+ /**
25
+ * Function for sending system messages or player messages in chat log.
26
+ * @param {string} Message
27
+ * @param {string} MessageType
28
+ */
29
+ declare function ClubCardOneMessagePacketSend(Message: string, MessageType: string, Push?: boolean): void;
30
+ /**
31
+ * Function to merge a huge number of Rope Slave and Living Art posts into one.
32
+ * @param {ClubCardMessage[]} MessagePacket
33
+ * @returns
34
+ */
35
+ declare function ClubCardProcessingRopeSlaveLivingArt(MessagePacket: ClubCardMessage[]): ClubCardMessage[];
36
+ /**
37
+ * Send Message Packet in Chat Log
38
+ * @param {ClubCardMessage[]} MessagePacket
39
+ */
40
+ declare function ClubCardMessagePacketSend(MessagePacket: ClubCardMessage[]): void;
41
+ /**
42
+ * Returns a packet with messages of the selected type and deletes them from the storage.
43
+ * @param {string[]} MessageTypes - Message Types for filter;
44
+ * @returns {ClubCardMessage[]}
45
+ */
46
+ declare function ClubCardGetLogPacket(MessageTypes: string[]): ClubCardMessage[];
18
47
  /**
19
48
  * Publishes an action to the log and replaces all the tags
49
+ * @param {string} MessageType - Message Type
20
50
  * @param {string} Text - The text to fetch
21
51
  * @param {ClubCardPlayer|null} CCPlayer - The source player
22
52
  * @param {number|null} Amount - The amount linked to the action
23
53
  * @param {ClubCard|null} Card - The card linked to the action
24
- * @returns {void} - Nothing
54
+ * @returns {void}
25
55
  */
26
- declare function ClubCardLogPublish(Text: string, CCPlayer?: ClubCardPlayer | null, Amount?: number | null, Card?: ClubCard | null): void;
56
+ declare function ClubCardLogGetDataPacket(MessageType: string, Text: string, CCPlayer?: ClubCardPlayer | null, Amount?: number | null, Card?: ClubCard | null): void;
27
57
  /**
28
58
  * Creates a popop in the middle of the board that pauses the game
29
59
  * @param {string} Mode - The popup mode "DECK", "TEXT" or "YESNO"
@@ -118,9 +148,10 @@ declare function ClubCardGroupOnBoardCount(CCPlayer: ClubCardPlayer, GroupName:
118
148
  * @param {ClubCardPlayer} CCPlayer - The club card player
119
149
  * @param {ClubCard} Card - The card object to remove
120
150
  * @param {boolean|null} DontDiscard - If the card dont need to go to the discard pile
151
+ * @param {string} [MessageType=ClubCardMessageType.PLAYERCARDSLEFT]
121
152
  * @returns {void} - Nothing
122
153
  */
123
- declare function ClubCardRemoveFromBoard(CCPlayer: ClubCardPlayer, Card: ClubCard, DontDiscard?: boolean | null): void;
154
+ declare function ClubCardRemoveFromBoard(CCPlayer: ClubCardPlayer, Card: ClubCard, DontDiscard?: boolean | null, MessageType?: string): void;
124
155
  /**
125
156
  * Gets the updated cost for a player to level up
126
157
  * @param {ClubCardPlayer} CCPlayer - The club card player
@@ -271,12 +302,18 @@ declare function ClubCardGetReward(): void;
271
302
  * @returns {void}
272
303
  */
273
304
  declare function ClubCardRunTurnEndHandlers(CCPlayer: ClubCardPlayer, Opponent: ClubCardPlayer, Before: boolean): void;
305
+ /**
306
+ * @param {string} StartType
307
+ * StartType = ClubCardStartTurnType.BUNKRUPT because otherwise the bankruptcy function won't work.
308
+ */
309
+ declare function ClubCardStartTurn(StartType?: string): void;
274
310
  /**
275
311
  * When a turn ends, we move to the next player
276
312
  * @param {boolean|null} Draw - If the end of turn was triggered by a draw
277
313
  * @returns {void} - Nothing
278
314
  */
279
315
  declare function ClubCardEndTurn(Draw?: boolean | null): void;
316
+ declare function ClubCardCheckEventAndCardExpired(): void;
280
317
  /**
281
318
  * Checks that the focused card is still in the Player's hand
282
319
  * and defocuses it if not.
@@ -407,6 +444,7 @@ declare function ClubCardRenderBubble(Value: number, X: number, Y: number, W: nu
407
444
  declare function ClubCardGetGroupText(Group: any[]): string;
408
445
  /**
409
446
  * Updated the text by mask, for InnerHTML
447
+ * The function finds the necessary words from the arrays and adds colour labels to them.
410
448
  * @param {String} text -Normal Card Text
411
449
  * @returns {String} - Updated for InnerHTML Card Text
412
450
  */
@@ -464,6 +502,16 @@ declare function ClubCardStatusText(Text: string): void;
464
502
  * @returns {void} - Nothing
465
503
  */
466
504
  declare function ClubCardRenderPanel(): void;
505
+ /**
506
+ * Function to create and add system or player messages to document.getElementById(“CCLog”).
507
+ * @param {ClubCardMessage} MessageItem - Message
508
+ */
509
+ declare function ClubCardCreateOneDivContainer(MessageItem: ClubCardMessage): void;
510
+ /**
511
+ * Function for creating and filling a container with all objects for a stroke by index.
512
+ * @param {ClubCardMessage} MessageItem - Message
513
+ */
514
+ declare function ClubCardCreateTurnDivContainer(MessageItem: ClubCardMessage): void;
467
515
  /**
468
516
  * Renders the popup on the top of the game board
469
517
  * @returns {void} - Nothing
@@ -481,14 +529,9 @@ declare function ClubCardRun(): void;
481
529
  declare function ClubCardClick(): void;
482
530
  declare function ClubCardKeyDown(event: KeyboardEvent): boolean;
483
531
  declare var ClubCardBackground: string;
484
- declare var ClubCardLog: any[];
485
- declare var ClubCardLogText: string;
486
- declare var ClubCardOldLogText: string;
487
- declare var ClubCardLogScroll: boolean;
488
532
  declare var ClubCardColor: string[];
489
533
  declare var ClubCardFameTextColor: string;
490
534
  declare var ClubCardMoneyTextColor: string;
491
- declare var ClubCardIsStartTurnAddedLog: boolean;
492
535
  declare var ClubCardOpponent: any;
493
536
  declare var ClubCardOpponentDeck: any[];
494
537
  declare var ClubCardReward: any;
@@ -509,6 +552,36 @@ declare var ClubCardLevelCost: number[];
509
552
  declare var ClubCardPlayer: ClubCardPlayer[];
510
553
  declare var ClubCardOnlinePlayerMemberNumber1: number;
511
554
  declare var ClubCardOnlinePlayerMemberNumber2: number;
555
+ /** @type {ClubCardMessage[]} */
556
+ declare var ClubCardLog: ClubCardMessage[];
557
+ /** @type {ClubCardMessage[]} */
558
+ declare var ClubCardRenderLog: ClubCardMessage[];
559
+ declare var ClubCardLogScroll: boolean;
560
+ /** @type {ClubCardMessage[]} */
561
+ declare let ClubCardMessageStorage: ClubCardMessage[];
562
+ declare const ClubCardMessageType: Readonly<{
563
+ STARTTURNINFO: "StartTurnInfo";
564
+ STARTTURNEVENT: "StartTurnEvent";
565
+ ACTION: "Actions";
566
+ CARDEFFECT: "CardsEffect";
567
+ KNOTEVENT: "KnotEvent";
568
+ TURNENDEFFECT: "TurnEndEffect";
569
+ FAMEMONEYINFO: "FameMoneyInfo";
570
+ VICTORYINFO: "VictoryInfo";
571
+ PREREQUISTITE: "Prerequisite";
572
+ ACTIONSEPARATOR: "ActionSeparator";
573
+ SYSTEM: "SystemMessage";
574
+ PLAYERSMESSAGE: "PlayersMessage";
575
+ }>;
576
+ declare const ClubCardStartTurnType: Readonly<{
577
+ PLAYCARD: "PlayCard";
578
+ DRAWENDTURN: "DrawAndEndTurn";
579
+ BANKRUPT: "Bankrupt";
580
+ UPGRADELEVEL: "UpgradeLevel";
581
+ ENDTURN: "EndTurn";
582
+ }>;
583
+ /** @type {boolean} Variable to check if the start function of the turn has already been called or not. */
584
+ declare let ClubCardIsStartTurn: boolean;
512
585
  /**
513
586
  * The card definitions
514
587
  *
@@ -19,10 +19,6 @@ declare function AdvancedRuleRun(): void;
19
19
  * @returns {void} - Nothing
20
20
  */
21
21
  declare function AdvancedRuleClick(): void;
22
- /**
23
- * Handles exiting from the screen, updates the sub rules
24
- * @returns {void} - Nothing
25
- */
26
22
  declare function AdvancedRuleExit(): void;
27
23
  declare var AdvancedRuleBackground: string;
28
24
  /** @type {null | Character | NPCCharacter} */
@@ -13,10 +13,6 @@ declare function ChatAdminRun(): void;
13
13
  * @returns {void} - Nothing
14
14
  */
15
15
  declare function ChatAdminClick(): void;
16
- /**
17
- * Handles exiting from the admin screen, removes the inputs and resets the state of the variables
18
- * @returns {void} - Nothing
19
- */
20
16
  declare function ChatAdminExit(): void;
21
17
  /**
22
18
  * Handles the reception of the server response after attempting to update a chatroom: Leaves the admin screen or shows an error message
@@ -34,10 +34,6 @@ declare function ChatAdminRoomCustomizationRun(): void;
34
34
  * @returns {void} - Nothing
35
35
  */
36
36
  declare function ChatAdminRoomCustomizationClick(): void;
37
- /**
38
- * Handles exiting from the admin custom screen, removes the inputs
39
- * @returns {void} - Nothing
40
- */
41
37
  declare function ChatAdminRoomCustomizationExit(): void;
42
38
  declare var ChatAdminRoomCustomizationBackground: string;
43
39
  /** @type {ServerChatRoomCustomData} */
@@ -13,10 +13,6 @@ declare function ChatBlockItemRun(): void;
13
13
  * @returns {void} - Nothing
14
14
  */
15
15
  declare function ChatBlockItemClick(): void;
16
- /**
17
- * Handles exiting from the screen
18
- * @returns {void} - Nothing
19
- */
20
16
  declare function ChatBlockItemExit(): void;
21
17
  declare var ChatBlockItemBackground: string;
22
18
  /** @type {ServerChatRoomBlockCategory[]} */
@@ -1,23 +1,8 @@
1
- /**
2
- * Loads the chat creation screen properties and creates the inputs
3
- * @returns {void} - Nothing
4
- */
5
1
  declare function ChatCreateLoad(): void;
6
- /**
7
- * When the chat creation screen runs, draws the screen
8
- * @returns {void} - Nothing
9
- */
10
- declare function ChatCreateRun(): void;
11
- /**
12
- * Handles the click events on the chat creation screen. Is called from CommonClick()
13
- * @returns {void} - Nothing
14
- */
15
- declare function ChatCreateClick(): void;
2
+ declare function ChatCreateUnload(): void;
3
+ declare function ChatCreateRun(time: number): void;
4
+ declare function ChatCreateClick(event: MouseEvent | TouchEvent): void;
16
5
  declare function ChatCreateKeyDown(event: KeyboardEvent): boolean;
17
- /**
18
- * Handles exiting from the chat creation screen, removes the inputs and resets the state of the variable
19
- * @returns {void} - Nothing
20
- */
21
6
  declare function ChatCreateExit(): void;
22
7
  /**
23
8
  * Handles the reception of the server response after attempting to create a chatroom: shows the error message, if applicable
@@ -415,6 +415,7 @@ declare function ChatRoomSetLastChatRoom(room: ChatRoom | null): void;
415
415
  */
416
416
  declare function ChatRoomStimulationMessage(Action: StimulationAction): void;
417
417
  declare function ChatRoomResize(load: boolean): void;
418
+ declare function ChatRoomUnload(): void;
418
419
  /**
419
420
  * Draws arousal screen filter
420
421
  * @param {number} y1 - Y to draw filter at.
@@ -1,18 +1,7 @@
1
- /**
2
- * Loads the chat search screen properties, creates the inputs and loads up the first 24 rooms.
3
- * @returns {void} - Nothing
4
- */
5
1
  declare function ChatSearchLoad(): void;
6
- /**
7
- * When the chat Search screen runs, draws the screen
8
- * @returns {void} - Nothing
9
- */
10
- declare function ChatSearchRun(): void;
11
- /**
12
- * Handles the click events on the chat search screen. Is called from CommonClick()
13
- * @returns {void} - Nothing
14
- */
15
- declare function ChatSearchClick(): void;
2
+ declare function ChatSearchUnload(): void;
3
+ declare function ChatSearchRun(time: number): void;
4
+ declare function ChatSearchClick(event: MouseEvent | TouchEvent): void;
16
5
  /**
17
6
  * Draws buttons and text for selection of room space.
18
7
  * @returns {void} - Nothing
@@ -54,10 +43,6 @@ declare function ChatSearchSaveLanguageAndFilterTerms(): void;
54
43
  */
55
44
  declare function ChatSearchLoadLanguageAndFilterTerms(): void;
56
45
  declare function ChatSearchKeyDown(event: KeyboardEvent): boolean;
57
- /**
58
- * Handles exiting from the chat search screen, removes the input.
59
- * @returns {void} - Nothing
60
- */
61
46
  declare function ChatSearchExit(): void;
62
47
  /**
63
48
  * Draws the filter mode help screen: just text and a back button.
@@ -18,10 +18,6 @@ declare function ForbiddenWordsRun(): void;
18
18
  * @returns {void} - Nothing
19
19
  */
20
20
  declare function ForbiddenWordsClick(): void;
21
- /**
22
- * Handles exiting from the screen, updates the sub rules
23
- * @returns {void} - Nothing
24
- */
25
21
  declare function ForbiddenWordsExit(): void;
26
22
  declare var ForbiddenWordsBackground: string;
27
23
  /** @type {null | Character } */
@@ -48,10 +48,6 @@ declare function GameClubCardRun(): void;
48
48
  * @returns {void} - Nothing
49
49
  */
50
50
  declare function GameClubCardClick(): void;
51
- /**
52
- * Triggered when the player exits the Club Card config screen.
53
- * @returns {void} - Nothing
54
- */
55
51
  declare function GameClubCardExit(): void;
56
52
  /**
57
53
  * Checks there's 1 player in slot 1 and slot 2 so we can start the game.
@@ -66,10 +66,6 @@ declare function GameLARPStartProcess(): void;
66
66
  * @returns {void} - Nothing
67
67
  */
68
68
  declare function GameLARPClick(): void;
69
- /**
70
- * Triggered when the player exits the LARP info screen.
71
- * @returns {void} - Nothing
72
- */
73
69
  declare function GameLARPExit(): void;
74
70
  /**
75
71
  * Checks if a LARP match can be launched. The player must be an admin and two different teams must be selected.
@@ -64,10 +64,6 @@ declare function GameMagicBattleStartProcess(): void;
64
64
  * @returns {void} - Nothing
65
65
  */
66
66
  declare function GameMagicBattleClick(): void;
67
- /**
68
- * Triggered when the player exits the Magic Battle info screen.
69
- * @returns {void} - Nothing
70
- */
71
67
  declare function GameMagicBattleExit(): void;
72
68
  /**
73
69
  * Checks if a Magic Battle match can be launched. The player must be an admin and two different houses must be selected.
@@ -15,8 +15,8 @@ declare function NicknameManagementRun(): void;
15
15
  declare function NicknameManagementClick(): void;
16
16
  /**
17
17
  * Handles exiting from the screen, updates the sub rules
18
+ * @satisfies {ScreenFunctions["Exit"]}
18
19
  * @param {boolean} Save - Received rule data object.
19
- * @returns {void} - Nothing
20
20
  */
21
21
  declare function NicknameManagementExit(Save?: boolean): void;
22
22
  declare var NicknameManagementBackground: string;
@@ -154,10 +154,6 @@ declare function AsylumEntranceKidnapNurseBribe(BribeAmount: string, BribeOdds:
154
154
  * @returns {void} - Nothing
155
155
  */
156
156
  declare function AsylumEntranceKidnapNurseTransferToRoom(): void;
157
- /**
158
- * When the player leaves the kidnap nurse
159
- * @returns {void} - Nothing
160
- */
161
157
  declare function AsylumEntranceKidnapNurseExit(): void;
162
158
  /**
163
159
  * When the escaped player walks back to the asylum
@@ -108,8 +108,8 @@ declare function CraftingConvertItemToSelected(Craft: CraftingItem): CraftingIte
108
108
  declare function CraftingExitResetElements(): void;
109
109
  /**
110
110
  * When the player exits the crafting room
111
+ * @satisfies {ScreenFunctions["Exit"]}
111
112
  * @param {boolean} allowPanelClose - Whether an exit call in the `Name` mode is allowed to close the side panels before performing a proper exit of the subscreen
112
- * @returns {void} - Nothing
113
113
  */
114
114
  declare function CraftingExit(allowPanelClose?: boolean): void;
115
115
  /**
@@ -264,6 +264,8 @@ declare namespace CraftingID {
264
264
  let privateLabel: "crafting-private-label";
265
265
  let extendedButton: "crafting-extended-button";
266
266
  let extendedLabel: "crafting-extended-label";
267
+ let tightenButton: "crafting-tighten-button";
268
+ let tightenLabel: "crafting-tighten-label";
267
269
  let asciiDescriptionCheckbox: "crafting-ascii-description-checkbox";
268
270
  let asciidescriptionLabel: "crafting-ascii-description-label";
269
271
  }
@@ -282,6 +284,7 @@ declare namespace CraftingEventListeners {
282
284
  let _InputDescription: (this: HTMLTextAreaElement, ev: Event) => void;
283
285
  let _ChangeColor: (this: HTMLInputElement, ev: Event) => void;
284
286
  let _ClickExtended: (this: HTMLButtonElement, ev: Event) => void;
287
+ let _ClickTighten: (this: HTMLButtonElement, ev: Event) => void;
285
288
  let _ClickLayering: (this: HTMLButtonElement, ev: Event) => void;
286
289
  let _ClickColors: (this: HTMLButtonElement, ev: Event) => void;
287
290
  let _ClickUndress: (this: HTMLButtonElement, ev: Event) => void;
@@ -33,10 +33,6 @@ declare function InfiltrationPerksRun(): void;
33
33
  * @returns {void} - Nothing
34
34
  */
35
35
  declare function InfiltrationPerksClick(): void;
36
- /**
37
- * Updates the infiltration data for the player
38
- * @returns {void} - Nothing
39
- */
40
36
  declare function InfiltrationPerksExit(): void;
41
37
  declare var InfiltrationPerksBackground: string;
42
38
  declare var InfiltrationPerksList: string[];
@@ -60,8 +60,4 @@ declare function PlatformProfileResetPerk(): void;
60
60
  * @returns {void} - Nothing
61
61
  */
62
62
  declare function PlatformProfileClick(): void;
63
- /**
64
- * When the screens exits, we unload the listeners
65
- * @returns {void} - Nothing
66
- */
67
63
  declare function PlatformProfileExit(): void;
@@ -512,9 +512,11 @@ declare function PrivateLoadCharacter(data: PrivateCharacterData): boolean;
512
512
  * @param {NPCCharacter} Template - The base of the character, includes the name and appearance.
513
513
  * @param {"" | NPCArchetype} [Archetype] - The type of character such as maid or mistress.
514
514
  * @param {boolean} [CustomData=false] - Whether or not the character has non-random traits.
515
+ * @param {null | ModuleType} [Module]
516
+ * @param {null | string} [Screen]
515
517
  * @returns {NPCCharacter} - The new private room character.
516
518
  */
517
- declare function PrivateAddCharacter(Template: NPCCharacter, Archetype?: "" | NPCArchetype, CustomData?: boolean): NPCCharacter;
519
+ declare function PrivateAddCharacter(Template: NPCCharacter, Archetype?: "" | NPCArchetype, CustomData?: boolean, Module?: null | ModuleType, Screen?: null | string): NPCCharacter;
518
520
  /**
519
521
  * Gets the index of a given private room character.
520
522
  * @returns {number} - Index of the NPC inside the private characters array.
@@ -720,10 +722,6 @@ declare function PrivateNPCCheat(Type: any): void;
720
722
  * @returns {void} - Nothing.
721
723
  */
722
724
  declare function PrivateGetBed(Type: "White" | "Black" | "Pink"): void;
723
- /**
724
- * When the player exits the private room
725
- * @returns {void} - Nothing.
726
- */
727
725
  declare function PrivateExit(): void;
728
726
  /**
729
727
  * When the player joins the NPC in bed
@@ -53,10 +53,6 @@ declare function PrivateBedNPCActivity(Source: Character): void;
53
53
  * @returns {void|boolean} - Nothing.
54
54
  */
55
55
  declare function PrivateBedClick(): void | boolean;
56
- /**
57
- * When the player exits the private bedroom. The next sex scene will wait from 5 to 20 depending on luck and the frigid/honry trait.
58
- * @returns {void} - Nothing.
59
- */
60
56
  declare function PrivateBedExit(): void;
61
57
  /**
62
58
  * When a character gets an orgasm
@@ -44,9 +44,11 @@ declare function CharacterArchetypeClothes(C: Character, Archetype: "Maid" | "Mi
44
44
  * Loads an NPC into the character array. The appearance is randomized, and a type can be provided to dress them in a given style.
45
45
  * @param {string} CharacterID - The unique identifier for the NPC
46
46
  * @param {string} [NPCType] - The dialog used by the NPC. Defaults to CharacterID if not specified.
47
+ * @param {null | ModuleType} module
48
+ * @param {null | string} screen
47
49
  * @returns {NPCCharacter} - The randomly generated NPC
48
50
  */
49
- declare function CharacterLoadNPC(CharacterID: string, NPCType?: string, module?: ModuleType, screen?: string): NPCCharacter;
51
+ declare function CharacterLoadNPC(CharacterID: string, NPCType?: string, module?: null | ModuleType, screen?: null | string): NPCCharacter;
50
52
  /**
51
53
  * Create a minimal character object
52
54
  * @param {string} CharacterID - The account name to give to the character
@@ -34,6 +34,12 @@ declare function ColorPickerGetCoordinates(Event: MouseEvent | TouchEvent): {
34
34
  X: number;
35
35
  Y: number;
36
36
  };
37
+ /**
38
+ * Sets the picked hue based on the Event coordinates on the canvas
39
+ * @param {MouseEvent|TouchEvent} Event - The touch/mouse event
40
+ * @returns {void} - Nothing
41
+ */
42
+ declare function ColorPickerPickOpacity(Event: MouseEvent | TouchEvent): void;
37
43
  /**
38
44
  * Sets the picked hue based on the Event coordinates on the canvas
39
45
  * @param {MouseEvent|TouchEvent} Event - The touch/mouse event
@@ -299,7 +299,8 @@ declare namespace ElementButton {
299
299
  let _KeyDown: (this: HTMLButtonElement, ev: KeyboardEvent) => Promise<void>;
300
300
  let _KeyUp: (this: HTMLButtonElement, ev: KeyboardEvent) => Promise<void>;
301
301
  let _Click: (this: HTMLButtonElement, ev: MouseEvent | TouchEvent) => void;
302
- let _MouseUp: (this: HTMLButtonElement) => void;
302
+ let _MouseDown: (this: HTMLButtonElement, ev: Event) => void;
303
+ let _MouseUp: (this: HTMLButtonElement, ev: Event) => void;
303
304
  function _QueryDFS(root: Element, query: string, filter: (el: Element) => boolean): Generator<Element, void>;
304
305
  let _ClickRadio: (this: HTMLButtonElement, ev: Event) => void;
305
306
  function _KeyDownRadio(this: HTMLElement, ev: KeyboardEvent): void;
@@ -146,11 +146,11 @@ declare function InventoryGet(C: Character, AssetGroup: AssetGroupName): Item |
146
146
  * @param {AssetGroupItemName} GroupName - The name of the asset group to scan
147
147
  * @param {CraftingItem} Craft - The crafted properties to apply
148
148
  * @param {Boolean} Refresh - TRUE if we must refresh the character
149
- * @param {Boolean} ApplyColor - TRUE if the items color must be (re-)applied
149
+ * @param {Boolean} PreConfigureItem - TRUE if the default, pre-configured item state of the crafted item must be (re-)applied
150
150
  * @param {Boolean} CraftWarn - Whether a warning should logged whenever the crafting validation fails
151
151
  * @returns {void}
152
152
  */
153
- declare function InventoryCraft(Source: Character, Target: Character, GroupName: AssetGroupItemName, Craft: CraftingItem, Refresh: boolean, ApplyColor?: boolean, CraftWarn?: boolean): void;
153
+ declare function InventoryCraft(Source: Character, Target: Character, GroupName: AssetGroupItemName, Craft: CraftingItem, Refresh: boolean, PreConfigureItem?: boolean, CraftWarn?: boolean): void;
154
154
  /**
155
155
  * Returns the number of items on a character with a specific property
156
156
  * @param {Character} C - The character to validate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bc-stubs",
3
- "version": "109.0.0",
3
+ "version": "110.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/bananarama92/BC-stubs.git"