bc-stubs 100.0.0 → 101.0.0-Beta.2
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/Assets/Female3DCG/Female3DCG.d.ts +1 -0
- package/bc/Female3DCG_Types.d.ts +7 -0
- package/bc/Messages.d.ts +52 -20
- package/bc/Screens/Inventory/ItemMouth/FuturisticPanelGag/FuturisticPanelGag.d.ts +2 -1
- package/bc/Screens/MiniGame/ClubCard/ClubCard.d.ts +13 -0
- package/bc/Screens/MiniGame/MaidDrinks/MaidDrinks.d.ts +2 -2
- package/bc/Screens/Online/ChatRoom/ChatRoom.d.ts +43 -57
- package/bc/Screens/Online/ChatRoom/ChatRoomCharacterView.d.ts +94 -0
- package/bc/Screens/Online/ChatRoom/{ChatRoomMap.d.ts → ChatRoomMapView.d.ts} +150 -89
- package/bc/Screens/Online/GameClubCard/GameClubCard.d.ts +4 -3
- package/bc/Screens/Online/GameLARP/GameLARP.d.ts +2 -2
- package/bc/Screens/Online/GameMagicBattle/GameMagicBattle.d.ts +2 -2
- package/bc/Screens/Room/MaidQuarters/MaidQuarters.d.ts +5 -0
- package/bc/Screens/Room/Pandora/Pandora.d.ts +3 -2
- package/bc/Screens/Room/Platform/Platform.d.ts +11 -5
- package/bc/Screens/Room/PlatformDialog/PlatformDialog.d.ts +3 -3
- package/bc/Screens/Room/PlatformProfile/PlatformProfile.d.ts +1 -1
- package/bc/Scripts/Character.d.ts +1 -1
- package/bc/Scripts/Common.d.ts +34 -5
- package/bc/Scripts/Dialog.d.ts +4 -2
- package/bc/Scripts/ExtendedItem.d.ts +1 -0
- package/bc/Scripts/Inventory.d.ts +8 -2
- package/bc/Scripts/Server.d.ts +12 -15
- package/bc/Typedef.d.ts +387 -142
- package/package.json +1 -1
package/bc/Female3DCG_Types.d.ts
CHANGED
|
@@ -573,6 +573,13 @@ interface AssetDefinitionBase extends AssetCommonPropertiesGroupAsset, AssetComm
|
|
|
573
573
|
/** @deprecated */
|
|
574
574
|
AllowTypes?: never;
|
|
575
575
|
CreateLayerTypes?: string[];
|
|
576
|
+
/**
|
|
577
|
+
* Whether an item can be tightened or not.
|
|
578
|
+
*
|
|
579
|
+
* Defaults to `false` unless one of the following two conditions are met:
|
|
580
|
+
* * The item is considered a restraint (see {@link AssetDefinition.IsRestraint})
|
|
581
|
+
* * The items difficulty is larger than zero (see {@link AssetDefinition.Difficulty})
|
|
582
|
+
*/
|
|
576
583
|
AllowTighten?: boolean;
|
|
577
584
|
DefaultColor?: ItemColor;
|
|
578
585
|
Audio?: string;
|
package/bc/Messages.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ interface ServerAccountImmutableData {
|
|
|
10
10
|
Creation: number;
|
|
11
11
|
Ownership?: ServerOwnership;
|
|
12
12
|
Lovership?: ServerLovership[];
|
|
13
|
-
ActivePose?: readonly
|
|
14
|
-
Pose?:
|
|
13
|
+
ActivePose?: readonly AssetPoseName[];
|
|
14
|
+
Pose?: readonly AssetPoseName[];
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
interface ServerAccountData extends ServerAccountImmutableData {
|
|
@@ -21,40 +21,55 @@ interface ServerAccountData extends ServerAccountImmutableData {
|
|
|
21
21
|
*/
|
|
22
22
|
Lover?: string;
|
|
23
23
|
Money: number;
|
|
24
|
-
Log?:
|
|
24
|
+
Log?: LogRecord[];
|
|
25
25
|
GhostList?: MemberNumber[];
|
|
26
26
|
BlackList: MemberNumber[];
|
|
27
27
|
FriendList: MemberNumber[];
|
|
28
28
|
WhiteList: MemberNumber[];
|
|
29
29
|
ItemPermission: number;
|
|
30
|
-
Skill?:
|
|
30
|
+
Skill?: Skill[];
|
|
31
31
|
Reputation?: { Type: string, Value: number }[];
|
|
32
|
-
Wardrobe?:
|
|
33
|
-
WardrobeCharacterNames?:
|
|
34
|
-
ChatSettings?:
|
|
35
|
-
VisualSettings?:
|
|
36
|
-
AudioSettings?:
|
|
37
|
-
GameplaySettings?:
|
|
38
|
-
ArousalSettings?:
|
|
39
|
-
OnlineSharedSettings?:
|
|
32
|
+
Wardrobe?: string;
|
|
33
|
+
WardrobeCharacterNames?: string[];
|
|
34
|
+
ChatSettings?: ChatSettingsType;
|
|
35
|
+
VisualSettings?: VisualSettingsType;
|
|
36
|
+
AudioSettings?: AudioSettingsType;
|
|
37
|
+
GameplaySettings?: GameplaySettingsType;
|
|
38
|
+
ArousalSettings?: ArousalSettingsType;
|
|
39
|
+
OnlineSharedSettings?: CharacterOnlineSharedSettings;
|
|
40
40
|
Game?: CharacterGameParameters;
|
|
41
41
|
LabelColor?: string;
|
|
42
42
|
Appearance?: ServerAppearanceBundle;
|
|
43
43
|
Description?: string;
|
|
44
|
-
BlockItems?:
|
|
45
|
-
LimitedItems?:
|
|
46
|
-
FavoriteItems?:
|
|
47
|
-
HiddenItems?:
|
|
48
|
-
Title?:
|
|
44
|
+
BlockItems?: ItemPermissionsPacked | ItemPermissions[];
|
|
45
|
+
LimitedItems?: ItemPermissionsPacked | ItemPermissions[];
|
|
46
|
+
FavoriteItems?: ItemPermissionsPacked | ItemPermissions[];
|
|
47
|
+
HiddenItems?: ItemPermissions[];
|
|
48
|
+
Title?: TitleName;
|
|
49
49
|
Nickname?: string;
|
|
50
50
|
Crafting?: string;
|
|
51
|
-
Inventory?: string
|
|
51
|
+
Inventory?: string | Partial<Record<AssetGroupName, string[]>>;
|
|
52
52
|
AssetFamily?: "Female3DCG";
|
|
53
|
-
Infiltration?:
|
|
54
|
-
SavedColors?:
|
|
53
|
+
Infiltration?: InfiltrationType;
|
|
54
|
+
SavedColors?: HSVColor[];
|
|
55
55
|
ChatSearchFilterTerms?: string;
|
|
56
56
|
Difficulty?: { Level: number; LastChange: number };
|
|
57
57
|
MapData?: ChatRoomMapData;
|
|
58
|
+
PrivateCharacter?: ServerPrivateCharacterData[];
|
|
59
|
+
SavedExpressions?: ({ Group: ExpressionGroupName, CurrentExpression?: ExpressionName }[] | null)[];
|
|
60
|
+
ConfiscatedItems?: { Group: AssetGroupName, Name: string }[];
|
|
61
|
+
RoomCreateLanguage?: ServerChatRoomLanguage;
|
|
62
|
+
RoomSearchLanguage?: "" | ServerChatRoomLanguage;
|
|
63
|
+
LastMapData?: null | ChatRoomMapData;
|
|
64
|
+
LastChatRoom?: null | ServerChatRoomSettings;
|
|
65
|
+
ControllerSettings?: ControllerSettingsType;
|
|
66
|
+
ImmersionSettings?: ImmersionSettingsType;
|
|
67
|
+
RestrictionSettings?: RestrictionSettingsType;
|
|
68
|
+
OnlineSettings?: PlayerOnlineSettings;
|
|
69
|
+
GraphicsSettings?: GraphicsSettingsType;
|
|
70
|
+
NotificationSettings?: NotificationSettingsType;
|
|
71
|
+
GenderSettings?: GenderSettingsType;
|
|
72
|
+
ExtensionSettings?: ExtensionSettings;
|
|
58
73
|
}
|
|
59
74
|
|
|
60
75
|
interface ServerMapDataResponse {
|
|
@@ -93,6 +108,22 @@ interface ServerItemBundle {
|
|
|
93
108
|
Craft?: CraftingItem;
|
|
94
109
|
}
|
|
95
110
|
|
|
111
|
+
interface ServerPrivateCharacterData {
|
|
112
|
+
Name: string;
|
|
113
|
+
Love: number;
|
|
114
|
+
Title: TitleName;
|
|
115
|
+
Trait: NPCTrait[];
|
|
116
|
+
Cage: boolean;
|
|
117
|
+
Owner: string;
|
|
118
|
+
Lover: string;
|
|
119
|
+
AssetFamily: "Female3DCG";
|
|
120
|
+
Appearance: ServerAppearanceBundle;
|
|
121
|
+
AppearanceFull: ServerAppearanceBundle;
|
|
122
|
+
ArousalSettings: ArousalSettingsType;
|
|
123
|
+
Event: NPCTrait[];
|
|
124
|
+
FromPandora?: boolean;
|
|
125
|
+
}
|
|
126
|
+
|
|
96
127
|
/** An AppearanceBundle is whole minified appearance of a character */
|
|
97
128
|
type ServerAppearanceBundle = ServerItemBundle[];
|
|
98
129
|
|
|
@@ -135,6 +166,7 @@ type ServerChatRoomData = {
|
|
|
135
166
|
|
|
136
167
|
interface ServerChatRoomMapData {
|
|
137
168
|
Type: string;
|
|
169
|
+
Fog?: boolean;
|
|
138
170
|
Tiles: string;
|
|
139
171
|
Objects: string;
|
|
140
172
|
}
|
|
@@ -12,6 +12,7 @@ declare function InventoryItemMouthFuturisticPanelGagSetOptionHook(data: Modular
|
|
|
12
12
|
declare function InventoryItemMouthFuturisticPanelGagPublishActionTrigger(C: Character, Item: Item, OptionName: string, Deflate: boolean): void;
|
|
13
13
|
/**
|
|
14
14
|
* Helper function for handling automatic gag inflation and deflation.
|
|
15
|
+
* @param {ModularItemData} data
|
|
15
16
|
* @param {Character} C - The selected character
|
|
16
17
|
* @param {Item} Item - The item in question
|
|
17
18
|
* @param {ModularItemOption} previousOption
|
|
@@ -19,7 +20,7 @@ declare function InventoryItemMouthFuturisticPanelGagPublishActionTrigger(C: Cha
|
|
|
19
20
|
* @param {boolean} Deflate - Whether this function is triggered by an automatic deflation or not
|
|
20
21
|
* @returns {ModularItemOption}
|
|
21
22
|
*/
|
|
22
|
-
declare function InventoryItemMouthFuturisticPanelGagTriggerGetOptions(C: Character, Item: Item, previousOption: ModularItemOption, module: ModularItemModule, Deflate: boolean): ModularItemOption;
|
|
23
|
+
declare function InventoryItemMouthFuturisticPanelGagTriggerGetOptions(data: ModularItemData, C: Character, Item: Item, previousOption: ModularItemOption, module: ModularItemModule, Deflate: boolean): ModularItemOption;
|
|
23
24
|
/**
|
|
24
25
|
* Helper function for handling automatic gag inflation and deflation.
|
|
25
26
|
* @param {ModularItemData} data
|
|
@@ -72,6 +72,13 @@ declare function ClubCardPlayerAddFame(CCPlayer: ClubCardPlayer, Amount: number)
|
|
|
72
72
|
* @returns {void} - Nothing
|
|
73
73
|
*/
|
|
74
74
|
declare function ClubCardUpgradeLevel(CCPlayer: any): void;
|
|
75
|
+
/**
|
|
76
|
+
* Returns TRUE if a card (by name) is currently present on a board
|
|
77
|
+
* @param {ClubCardPlayer} CCPlayer - The club card player
|
|
78
|
+
* @param {string} CardName - The name of the card
|
|
79
|
+
* @returns {boolean} - TRUE if at least one card with that name is present
|
|
80
|
+
*/
|
|
81
|
+
declare function ClubCardEventNameIsInEvents(CCPlayer: ClubCardPlayer, CardName: string): boolean;
|
|
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
|
|
@@ -100,6 +107,12 @@ declare function ClubCardGroupOnBoardCount(CCPlayer: ClubCardPlayer, GroupName:
|
|
|
100
107
|
* @returns {void} - Nothing
|
|
101
108
|
*/
|
|
102
109
|
declare function ClubCardRemoveFromBoard(CCPlayer: ClubCardPlayer, Card: ClubCard): void;
|
|
110
|
+
/**
|
|
111
|
+
* Removes several cards from player time events
|
|
112
|
+
* @param {ClubCardPlayer} CCPlayer - The club card player
|
|
113
|
+
* @param {String[]} ListOfCardNames - The names of the cards to remove
|
|
114
|
+
*/
|
|
115
|
+
declare function ClubCardRemoveCardsFromEventByName(CCPlayer: ClubCardPlayer, ListOfCardNames: string[]): void;
|
|
103
116
|
/**
|
|
104
117
|
* Removes a card from a player time events
|
|
105
118
|
* @param {ClubCardPlayer} CCPlayer - The club card player
|
|
@@ -53,9 +53,9 @@ declare function MaidDrinksMiss(): void;
|
|
|
53
53
|
declare function MaidDrinksDoMove(MoveType: number): void;
|
|
54
54
|
/**
|
|
55
55
|
* Handles key presses during the maid drinks mini game. (Both keyboard and mobile)
|
|
56
|
-
* @returns {
|
|
56
|
+
* @returns {boolean} - TRUE if the key is handled by the key down event
|
|
57
57
|
*/
|
|
58
|
-
declare function MaidDrinksKeyDown():
|
|
58
|
+
declare function MaidDrinksKeyDown(): boolean;
|
|
59
59
|
/**
|
|
60
60
|
* Handles clicks during the maid drinks mini game (only on mobile, to replace the keyboard)
|
|
61
61
|
* @returns {void} - Nothing
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Activates the chat room view with the passed name
|
|
3
|
+
* @param {string} viewName - The name of the view to activate
|
|
4
|
+
* @returns {void}
|
|
5
|
+
*/
|
|
6
|
+
declare function ChatRoomActivateView(viewName: string): void;
|
|
7
|
+
/**
|
|
8
|
+
* Indicates if the chat room view with the passed name is active or not
|
|
9
|
+
* @param {string} viewName - The name of the view to check
|
|
10
|
+
* @returns {boolean} - TRUE if the chat room character view is active, false if not
|
|
11
|
+
*/
|
|
12
|
+
declare function ChatRoomIsViewActive(viewName: string): boolean;
|
|
1
13
|
/**
|
|
2
14
|
* Checks if the player can add the current character to her whitelist.
|
|
3
15
|
* @returns {boolean} - TRUE if the current character is not in the player's whitelist nor blacklist.
|
|
@@ -230,15 +242,14 @@ declare function ChatRoomCanAssistStand(): boolean;
|
|
|
230
242
|
*/
|
|
231
243
|
declare function ChatRoomCanAssistKneel(): boolean;
|
|
232
244
|
/**
|
|
233
|
-
* Checks if the player character
|
|
234
|
-
*
|
|
245
|
+
* Checks if the player character is kneeling and can stand up.
|
|
246
|
+
* Will return true if there are any available transitions from {@link PoseAllKneeling} to {@link PoseAllStanding}.
|
|
235
247
|
* @returns {boolean} - Whether or not the player character can stand
|
|
236
248
|
*/
|
|
237
249
|
declare function ChatRoomCanAttemptStand(): boolean;
|
|
238
250
|
/**
|
|
239
|
-
* Checks if the player character
|
|
240
|
-
*
|
|
241
|
-
* minigame.
|
|
251
|
+
* Checks if the player character is standing and can kneel down.
|
|
252
|
+
* Will return true if there are any available transitions from {@link PoseAllStanding} to {@link PoseAllKneeling}.
|
|
242
253
|
* @returns {boolean} - Whether or not the player character can stand
|
|
243
254
|
*/
|
|
244
255
|
declare function ChatRoomCanAttemptKneel(): boolean;
|
|
@@ -344,29 +355,6 @@ declare function ChatRoomUpdateDisplay(): void;
|
|
|
344
355
|
* @returns {void} - Nothing.
|
|
345
356
|
*/
|
|
346
357
|
declare function DrawStatus(C: Character, X: number, Y: number, Zoom: number): void;
|
|
347
|
-
/**
|
|
348
|
-
* Iterate over a room's characters
|
|
349
|
-
*
|
|
350
|
-
* This function takes a callback it will call for each character in turn after having
|
|
351
|
-
* calculated their respective drawing parameters (location), accounting for the smooth zoom effect
|
|
352
|
-
* @param {(charIdx: number, charX: number, charY: number, space: number, zoom: number) => boolean | void} callback
|
|
353
|
-
*/
|
|
354
|
-
declare function ChatRoomLoopCharacters(callback: (charIdx: number, charX: number, charY: number, space: number, zoom: number) => boolean | void): void;
|
|
355
|
-
/**
|
|
356
|
-
* Draws the chatroom characters.
|
|
357
|
-
* @returns {void} - Nothing.
|
|
358
|
-
*/
|
|
359
|
-
declare function ChatRoomDrawCharacter(): void;
|
|
360
|
-
/**
|
|
361
|
-
* Draw the background of a chat room
|
|
362
|
-
* @param {string} Background - The name of the background image file
|
|
363
|
-
* @param {number} Y - The starting Y co-ordinate of the image
|
|
364
|
-
* @param {number} Zoom - The zoom factor based on the number of characters
|
|
365
|
-
* @param {number} DarkFactor - The value (0 = fully visible, 1 = black) to tint the background
|
|
366
|
-
* @param {boolean} InvertRoom - Whether the background image should be inverted
|
|
367
|
-
* @returns {void} - Nothing
|
|
368
|
-
*/
|
|
369
|
-
declare function ChatRoomDrawBackground(Background: string, Y: number, Zoom: number, DarkFactor: number, InvertRoom: boolean): void;
|
|
370
358
|
/**
|
|
371
359
|
* Draws the status icons of a character
|
|
372
360
|
* @param {Character} C The target character
|
|
@@ -375,26 +363,6 @@ declare function ChatRoomDrawBackground(Background: string, Y: number, Zoom: num
|
|
|
375
363
|
* @param {number} Zoom Room zoom
|
|
376
364
|
*/
|
|
377
365
|
declare function ChatRoomDrawCharacterStatusIcons(C: Character, CharX: number, CharY: number, Zoom: number): void;
|
|
378
|
-
/**
|
|
379
|
-
* Draws any overlays on top of character
|
|
380
|
-
* @param {Character} C The target character
|
|
381
|
-
* @param {number} CharX Character's X position on canvas
|
|
382
|
-
* @param {number} CharY Character's Y position on canvas
|
|
383
|
-
* @param {number} Zoom Room zoom
|
|
384
|
-
* @param {number} Pos Index of target character
|
|
385
|
-
*/
|
|
386
|
-
declare function ChatRoomDrawCharacterOverlay(C: Character, CharX: number, CharY: number, Zoom: number, Pos: number): void;
|
|
387
|
-
/**
|
|
388
|
-
* Called when character is clicked
|
|
389
|
-
* @param {Character} C The target character
|
|
390
|
-
* @param {number} CharX Character's X position on canvas
|
|
391
|
-
* @param {number} CharY Character's Y position on canvas
|
|
392
|
-
* @param {number} Zoom Room zoom
|
|
393
|
-
* @param {number} ClickX Click X postion relative to character, without zoom
|
|
394
|
-
* @param {number} ClickY Click Y postion relative to character, without zoom
|
|
395
|
-
* @param {number} Pos Index of target character
|
|
396
|
-
*/
|
|
397
|
-
declare function ChatRoomClickCharacter(C: Character, CharX: number, CharY: number, Zoom: number, ClickX: number, ClickY: number, Pos: number): void;
|
|
398
366
|
/**
|
|
399
367
|
* Select the character (open dialog) and clear other chatroom displays.
|
|
400
368
|
* @param {Character} C - The character to focus on. Does nothing if null.
|
|
@@ -496,6 +464,11 @@ declare function ChatRoomStatusUpdate(Status: string | null): void;
|
|
|
496
464
|
* @returns {void} - Nothing.
|
|
497
465
|
*/
|
|
498
466
|
declare function ChatRoomStatusUpdateTalk(Key: KeyboardEvent): void;
|
|
467
|
+
/**
|
|
468
|
+
* Handler called when the chat input field changes
|
|
469
|
+
* @param {Event} event
|
|
470
|
+
*/
|
|
471
|
+
declare function ChatRoomChatInputChangeHandler(event: Event): void;
|
|
499
472
|
/**
|
|
500
473
|
* Checks if status has expired or is otherwise no longer valid and resets status if so
|
|
501
474
|
* @returns {void} - Nothing.
|
|
@@ -516,6 +489,11 @@ declare function ChatRoomCustomizationRun(): void;
|
|
|
516
489
|
* @returns {void} - Nothing.
|
|
517
490
|
*/
|
|
518
491
|
declare function ChatRoomRun(): void;
|
|
492
|
+
/**
|
|
493
|
+
* Runs the arousal overlay.
|
|
494
|
+
* @returns {boolean} - Returns true if the orgasm overlay is active and false otherwise.
|
|
495
|
+
*/
|
|
496
|
+
declare function ChatRoomDrawArousalOverlay(): boolean;
|
|
519
497
|
/**
|
|
520
498
|
* Draws the chat room menu buttons
|
|
521
499
|
* @returns {void} - Nothing
|
|
@@ -543,9 +521,10 @@ declare function ChatRoomMouseMove(event: any): void;
|
|
|
543
521
|
declare function ChatRoomMouseWheel(event: any): void;
|
|
544
522
|
/**
|
|
545
523
|
* Handles clicks the chatroom screen.
|
|
524
|
+
* @param {MouseEvent | TouchEvent} event
|
|
546
525
|
* @returns {void} - Nothing.
|
|
547
526
|
*/
|
|
548
|
-
declare function ChatRoomClick(): void;
|
|
527
|
+
declare function ChatRoomClick(event: MouseEvent | TouchEvent): void;
|
|
549
528
|
/**
|
|
550
529
|
* Process chat room menu button clicks
|
|
551
530
|
* @returns {void} - Nothing
|
|
@@ -1290,8 +1269,6 @@ declare var ChatRoomQuestGiven: number[];
|
|
|
1290
1269
|
declare var ChatRoomSpace: ServerChatRoomSpace;
|
|
1291
1270
|
/** @type {ServerChatRoomGame} */
|
|
1292
1271
|
declare var ChatRoomGame: ServerChatRoomGame;
|
|
1293
|
-
/** @type {null | number} */
|
|
1294
|
-
declare var ChatRoomMoveTarget: null | number;
|
|
1295
1272
|
declare var ChatRoomHelpSeen: boolean;
|
|
1296
1273
|
declare var ChatRoomAllowCharacterUpdate: boolean;
|
|
1297
1274
|
declare var ChatRoomStruggleAssistBonus: number;
|
|
@@ -1316,8 +1293,12 @@ declare var ChatRoomChatLogRect: RectTuple;
|
|
|
1316
1293
|
* @type {RectTuple}
|
|
1317
1294
|
*/
|
|
1318
1295
|
declare var ChatRoomChatInputRect: RectTuple;
|
|
1296
|
+
/**
|
|
1297
|
+
* Default position of the chat input length label
|
|
1298
|
+
* @type {RectTuple}
|
|
1299
|
+
*/
|
|
1300
|
+
declare var ChatRoomChatLengthLabelRect: RectTuple;
|
|
1319
1301
|
declare var ChatRoomChatHidden: boolean;
|
|
1320
|
-
declare var ChatRoomCharacterCount: number;
|
|
1321
1302
|
/**
|
|
1322
1303
|
* The chatroom characters that were drawn in the last frame.
|
|
1323
1304
|
* Used for limiting the "fov". Characters come from {@link ChatRoomCharacter}
|
|
@@ -1351,6 +1332,16 @@ declare var ChatRoomTargetDirty: boolean;
|
|
|
1351
1332
|
declare var ChatRoomCustomized: boolean;
|
|
1352
1333
|
declare var ChatRoomCustomBackground: string;
|
|
1353
1334
|
declare var ChatRoomCustomFilter: string;
|
|
1335
|
+
/**
|
|
1336
|
+
* The list of chat room views
|
|
1337
|
+
* @type {Record<string, ChatRoomView>}
|
|
1338
|
+
*/
|
|
1339
|
+
declare var ChatRoomViews: Record<string, ChatRoomView>;
|
|
1340
|
+
/**
|
|
1341
|
+
* The active chat room view
|
|
1342
|
+
* @type {ChatRoomView}
|
|
1343
|
+
*/
|
|
1344
|
+
declare var ChatRoomActiveView: ChatRoomView;
|
|
1354
1345
|
/**
|
|
1355
1346
|
* Chances of a chat message popping up reminding you of some stimulation.
|
|
1356
1347
|
*
|
|
@@ -1424,11 +1415,6 @@ declare namespace ChatRoomFontSizes {
|
|
|
1424
1415
|
let Medium: number;
|
|
1425
1416
|
let Large: number;
|
|
1426
1417
|
}
|
|
1427
|
-
declare var ChatRoomCharacterX_Upper: number;
|
|
1428
|
-
declare var ChatRoomCharacterX_Lower: number;
|
|
1429
|
-
declare var ChatRoomCharacterZoom: number;
|
|
1430
|
-
declare var ChatRoomSlideWeight: number;
|
|
1431
|
-
declare var ChatRoomCharacterInitialize: boolean;
|
|
1432
1418
|
/** Sets whether an add/remove for one list automatically triggers an add/remove for another list */
|
|
1433
1419
|
declare function ChatRoomListOperationTriggers(): {
|
|
1434
1420
|
list: number[];
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Indicates if the chat room character view is active or not
|
|
3
|
+
* @returns {boolean} - TRUE if the chat room character view is active, false if not
|
|
4
|
+
*/
|
|
5
|
+
declare function ChatRoomCharacterViewIsActive(): boolean;
|
|
6
|
+
declare function ChatRoomCharacterViewRun(): void;
|
|
7
|
+
/**
|
|
8
|
+
* Alter the received message to what will be displayed in the chat log
|
|
9
|
+
*
|
|
10
|
+
* @param {ServerChatRoomMessage} data
|
|
11
|
+
* @param {string} msg
|
|
12
|
+
* @param {Character} SenderCharacter
|
|
13
|
+
* @param {IChatRoomMessageMetadata} metadata
|
|
14
|
+
* @returns {string|null} - The string to display or null if the message should be hidden
|
|
15
|
+
*/
|
|
16
|
+
declare function ChatRoomCharacterViewDisplayMessage(data: ServerChatRoomMessage, msg: string, SenderCharacter: Character, metadata: IChatRoomMessageMetadata): string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Handles clicks the chatroom screen view.
|
|
19
|
+
* @returns {void} - Nothing.
|
|
20
|
+
*/
|
|
21
|
+
declare function ChatRoomCharacterViewClick(event: any): void;
|
|
22
|
+
declare function ChatRoomCharacterViewKeyDown(event: any): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Returns TRUE if the player can leave
|
|
25
|
+
* @returns {boolean} - True if the player can leave
|
|
26
|
+
*/
|
|
27
|
+
declare function ChatRoomCharacterViewCanLeave(): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Take a screenshot of all characters in the chatroom
|
|
30
|
+
* @returns {void} - Nothing
|
|
31
|
+
*/
|
|
32
|
+
declare function ChatRoomCharacterViewScreenshot(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Returns TRUE if the map button can be used
|
|
35
|
+
* @returns {boolean} - TRUE if can be used
|
|
36
|
+
*/
|
|
37
|
+
declare function ChatRoomCharacterViewShowMapButton(): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Called when character is clicked
|
|
40
|
+
* @param {Character} C The target character
|
|
41
|
+
* @param {number} CharX Character's X position on canvas
|
|
42
|
+
* @param {number} CharY Character's Y position on canvas
|
|
43
|
+
* @param {number} Zoom Room zoom
|
|
44
|
+
* @param {number} ClickX Click X postion relative to character, without zoom
|
|
45
|
+
* @param {number} ClickY Click Y postion relative to character, without zoom
|
|
46
|
+
* @param {number} Pos Index of target character
|
|
47
|
+
*/
|
|
48
|
+
declare function ChatRoomCharacterViewClickCharacter(C: Character, CharX: number, CharY: number, Zoom: number, ClickX: number, ClickY: number, Pos: number): void;
|
|
49
|
+
/**
|
|
50
|
+
* Draws the chatroom characters.
|
|
51
|
+
* @returns {void} - Nothing.
|
|
52
|
+
*/
|
|
53
|
+
declare function ChatRoomCharacterViewDraw(): void;
|
|
54
|
+
declare function ChatRoomCharacterViewDrawUi(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Draw the background of a chat room
|
|
57
|
+
* @param {string} Background - The name of the background image file
|
|
58
|
+
* @param {number} Y - The starting Y co-ordinate of the image
|
|
59
|
+
* @param {number} Zoom - The zoom factor based on the number of characters
|
|
60
|
+
* @param {number} DarkFactor - The value (0 = fully visible, 1 = black) to tint the background
|
|
61
|
+
* @param {boolean} InvertRoom - Whether the background image should be inverted
|
|
62
|
+
* @returns {void} - Nothing
|
|
63
|
+
*/
|
|
64
|
+
declare function ChatRoomCharacterViewDrawBackground(Background: string, Y: number, Zoom: number, DarkFactor: number, InvertRoom: boolean): void;
|
|
65
|
+
/**
|
|
66
|
+
* Iterate over a room's characters
|
|
67
|
+
*
|
|
68
|
+
* This function takes a callback it will call for each character in turn after having
|
|
69
|
+
* calculated their respective drawing parameters (location), accounting for the smooth zoom effect
|
|
70
|
+
* @param {(charIdx: number, charX: number, charY: number, space: number, zoom: number) => boolean | void} callback
|
|
71
|
+
*/
|
|
72
|
+
declare function ChatRoomCharacterViewLoopCharacters(callback: (charIdx: number, charX: number, charY: number, space: number, zoom: number) => boolean | void): void;
|
|
73
|
+
/**
|
|
74
|
+
* Draws any overlays on top of character
|
|
75
|
+
* @param {Character} C The target character
|
|
76
|
+
* @param {number} CharX Character's X position on canvas
|
|
77
|
+
* @param {number} CharY Character's Y position on canvas
|
|
78
|
+
* @param {number} Zoom Room zoom
|
|
79
|
+
* @param {number} Pos Index of target character
|
|
80
|
+
*/
|
|
81
|
+
declare function ChatRoomCharacterViewDrawOverlay(C: Character, CharX: number, CharY: number, Zoom: number, Pos: number): void;
|
|
82
|
+
declare var ChatRoomCharacterViewInitialize: boolean;
|
|
83
|
+
declare var ChatRoomCharacterViewSlideWeight: number;
|
|
84
|
+
declare var ChatRoomCharacterViewX_Upper: number;
|
|
85
|
+
declare var ChatRoomCharacterViewX_Lower: number;
|
|
86
|
+
declare var ChatRoomCharacterViewZoom: number;
|
|
87
|
+
declare var ChatRoomCharacterViewCharacterCount: number;
|
|
88
|
+
/** @type {null | number} */
|
|
89
|
+
declare var ChatRoomCharacterViewMoveTarget: null | number;
|
|
90
|
+
/**
|
|
91
|
+
* The name of the chat room character view.
|
|
92
|
+
* @type {string}
|
|
93
|
+
*/
|
|
94
|
+
declare const ChatRoomCharacterViewName: string;
|