bc-stubs 110.0.0 → 110.0.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/Screens/Character/Login/Login.d.ts +2 -2
- package/bc/Screens/Online/ChatRoom/ChatRoom.d.ts +21 -0
- package/bc/Screens/Room/Crafting/Crafting.d.ts +59 -21
- package/bc/Screens/Room/Platform/Platform.d.ts +27 -27
- package/bc/Screens/Room/PlatformDialog/PlatformDialog.d.ts +160 -160
- package/bc/Screens/Room/Shop2/Shop2.d.ts +52 -1
- package/bc/Scripts/Asset.d.ts +35 -1
- package/bc/Scripts/Dialog.d.ts +8 -3
- package/bc/Scripts/Element.d.ts +95 -7
- package/bc/Scripts/ExtendedItem.d.ts +13 -0
- package/bc/Scripts/Inventory.d.ts +32 -0
- package/bc/Scripts/NoArch.d.ts +15 -0
- package/bc/Scripts/Pose.d.ts +13 -0
- package/bc/Scripts/TextItem.d.ts +30 -0
- package/bc/Scripts/VibratorMode.d.ts +37 -0
- package/package.json +1 -1
|
@@ -174,8 +174,8 @@ declare var LoginErrorMessage: string;
|
|
|
174
174
|
declare var LoginCharacter: NPCCharacter;
|
|
175
175
|
declare let LoginTextCacheUnsubscribeCallback: any;
|
|
176
176
|
declare namespace LoginEventListeners {
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
function _KeyDownInputName(this: HTMLInputElement, ev: KeyboardEvent): void;
|
|
178
|
+
function _KeyDownInputPassword(this: HTMLInputElement, ev: KeyboardEvent): void;
|
|
179
179
|
}
|
|
180
180
|
/**
|
|
181
181
|
* The list of item fixups to apply on login.
|
|
@@ -1500,9 +1500,30 @@ declare namespace ChatRoomSep {
|
|
|
1500
1500
|
let ActiveElem: null | HTMLDivElement;
|
|
1501
1501
|
let _ClickCollapse: (this: HTMLButtonElement, event: MouseEvent | TouchEvent) => Promise<void>;
|
|
1502
1502
|
let _ClickScrollUp: (this: HTMLButtonElement, event: MouseEvent | TouchEvent) => Promise<void>;
|
|
1503
|
+
/**
|
|
1504
|
+
* Return a {@link HTMLElement.InnerHTML} representation of the passed button's room name
|
|
1505
|
+
* @private
|
|
1506
|
+
* @param {HTMLButtonElement} button
|
|
1507
|
+
* @returns {string}
|
|
1508
|
+
*/
|
|
1503
1509
|
function _GetDisplayName(button: HTMLButtonElement): string;
|
|
1510
|
+
/**
|
|
1511
|
+
* Create a dividing element serving as seperator for different chat rooms
|
|
1512
|
+
* @param {boolean} appendChat - Whether to assign {@link ChatRoomSep.ActiveElem} and append the returned `<div>` to the chat log
|
|
1513
|
+
* @returns {HTMLDivElement} - The created `<div>` element
|
|
1514
|
+
*/
|
|
1504
1515
|
function Create(appendChat?: boolean): HTMLDivElement;
|
|
1516
|
+
/**
|
|
1517
|
+
* Return a {@link HTMLElement.innerHTML} representation of the separators room name
|
|
1518
|
+
* @param {HTMLDivElement} roomSep - The chat room separator
|
|
1519
|
+
* @returns {string}
|
|
1520
|
+
*/
|
|
1505
1521
|
function GetDisplayName(roomSep: HTMLDivElement): string;
|
|
1522
|
+
/**
|
|
1523
|
+
* Return whether the passed room separator is collapsed OR NOT
|
|
1524
|
+
* @param {HTMLDivElement} roomSep - The chat room separator
|
|
1525
|
+
* @returns {boolean}
|
|
1526
|
+
*/
|
|
1506
1527
|
function IsCollapsed(roomSep: HTMLDivElement): boolean;
|
|
1507
1528
|
function Uncollapse(roomSep: HTMLDivElement): Promise<void>;
|
|
1508
1529
|
function Collapse(roomSep: HTMLDivElement): Promise<void>;
|
|
@@ -273,36 +273,74 @@ declare namespace CraftingDescription {
|
|
|
273
273
|
let ExtendedDescriptionMarker: "\0";
|
|
274
274
|
let Pattern: RegExp;
|
|
275
275
|
let PatternASCII: RegExp;
|
|
276
|
+
/**
|
|
277
|
+
* Decode and return the passed string if it consists of UTF16-encoded UTF8 characters.
|
|
278
|
+
*
|
|
279
|
+
* Encoded strings must be marked with a leading {@link CraftingDescription.ExtendedDescriptionMarker}; unencoded strings are returned unmodified.
|
|
280
|
+
* @param {string} description - The to-be decoded string
|
|
281
|
+
* @returns {string} - The decoded string
|
|
282
|
+
*/
|
|
276
283
|
function Decode(description: string): string;
|
|
284
|
+
/**
|
|
285
|
+
* Encode the passed crafted item description, extracting all UTF8 characters and encoding up to two of them into a single UTF16 character.
|
|
286
|
+
*
|
|
287
|
+
* The first character is marked with {@link CraftingDescription.ExtendedDescriptionMarker}
|
|
288
|
+
* @param {string} description - The initial length <=398 string of UTF8 characters
|
|
289
|
+
* @returns {string} - The length <=200 string of UTF16-encoded UTF8 characters
|
|
290
|
+
*/
|
|
277
291
|
function Encode(description: string): string;
|
|
278
292
|
}
|
|
279
293
|
declare namespace CraftingEventListeners {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
294
|
+
function _ClickPrivate(this: HTMLInputElement, ev: Event): void;
|
|
295
|
+
function _InputLayering(this: HTMLInputElement, ev: Event): void;
|
|
296
|
+
function _ChangeName(this: HTMLInputElement, ev: Event): void;
|
|
297
|
+
function _ChangeDescription(this: HTMLTextAreaElement, ev: Event): void;
|
|
298
|
+
function _InputDescription(this: HTMLTextAreaElement, ev: Event): void;
|
|
299
|
+
function _ChangeColor(this: HTMLInputElement, ev: Event): void;
|
|
300
|
+
function _ClickExtended(this: HTMLButtonElement, ev: Event): void;
|
|
301
|
+
function _ClickTighten(this: HTMLButtonElement, ev: Event): void;
|
|
302
|
+
function _ClickLayering(this: HTMLButtonElement, ev: Event): void;
|
|
303
|
+
function _ClickColors(this: HTMLButtonElement, ev: Event): void;
|
|
304
|
+
function _ClickUndress(this: HTMLButtonElement, ev: Event): void;
|
|
305
|
+
function _ClickAccept(this: HTMLButtonElement, ev: Event): void;
|
|
306
|
+
function _ClickExit(this: HTMLButtonElement, ev: Event): void;
|
|
307
|
+
function _ClickUpload(this: HTMLButtonElement, ev: Event): void;
|
|
308
|
+
function _ClickDownload(this: HTMLButtonElement, ev: Event): void;
|
|
309
|
+
function _ClickExpand(this: HTMLButtonElement, ev: Event): void;
|
|
310
|
+
function _ClickProperty(this: HTMLButtonElement, ev: Event): void;
|
|
311
|
+
function _ClickPadlock(this: HTMLButtonElement, ev: Event): void;
|
|
312
|
+
function _ClickAsset(this: HTMLButtonElement, ev: Event): void;
|
|
313
|
+
function _ClickRadio(this: HTMLButtonElement, ev: Event): void;
|
|
300
314
|
let _InputSearch: (this: HTMLInputElement, ev: Event) => Promise<void>;
|
|
301
|
-
|
|
315
|
+
function _ClickAsciiDescription(this: HTMLInputElement, ev: Event): void;
|
|
302
316
|
}
|
|
303
317
|
declare namespace CraftingElements {
|
|
318
|
+
/**
|
|
319
|
+
* @private
|
|
320
|
+
* @param {string} controls
|
|
321
|
+
* @returns {() => string[]}
|
|
322
|
+
*/
|
|
304
323
|
function _SearchInputGetDataList(controls: string): () => string[];
|
|
324
|
+
/**
|
|
325
|
+
* @private
|
|
326
|
+
* @param {string} id
|
|
327
|
+
* @param {string} controls
|
|
328
|
+
* @param {string} placeholder
|
|
329
|
+
* @returns {HTMLInputElement}
|
|
330
|
+
*/
|
|
305
331
|
function _SearchInput(id: string, controls: string, placeholder: string): HTMLInputElement;
|
|
332
|
+
/**
|
|
333
|
+
* @private
|
|
334
|
+
* @param {string} id
|
|
335
|
+
* @param {(this: HTMLButtonElement, ev: Event) => any} onClick
|
|
336
|
+
* @param {null | Asset} assetImage
|
|
337
|
+
* @param {null | Partial<Record<string, string | number | boolean>>} dataAttributes
|
|
338
|
+
* @param {null | string} label
|
|
339
|
+
* @param {null | readonly (string | Node)[]} children
|
|
340
|
+
* @param {null | Asset} asset
|
|
341
|
+
* @param {boolean} first
|
|
342
|
+
* @returns {HTMLButtonElement}
|
|
343
|
+
*/
|
|
306
344
|
function _RadioButton(id: string, onClick: (this: HTMLButtonElement, ev: Event) => any, assetImage?: null | Asset, dataAttributes?: null | Partial<Record<string, string | number | boolean>>, label?: null | string, children?: null | readonly (string | Node)[], asset?: null | Asset, first?: boolean): HTMLButtonElement;
|
|
307
345
|
}
|
|
308
346
|
/**
|
|
@@ -438,7 +438,7 @@ declare var PlatformInventoryList: {
|
|
|
438
438
|
Name: string;
|
|
439
439
|
DisplayName: string;
|
|
440
440
|
Description: string;
|
|
441
|
-
OnGive
|
|
441
|
+
OnGive(Char: any): void;
|
|
442
442
|
}[];
|
|
443
443
|
declare var PlatformTemplate: ({
|
|
444
444
|
Name: string;
|
|
@@ -724,7 +724,7 @@ declare var PlatformTemplate: ({
|
|
|
724
724
|
Damage?: undefined;
|
|
725
725
|
JumpForce?: undefined;
|
|
726
726
|
})[];
|
|
727
|
-
OnBind
|
|
727
|
+
OnBind(): void;
|
|
728
728
|
Magic?: undefined;
|
|
729
729
|
MagicPerLevel?: undefined;
|
|
730
730
|
ProjectileHitAudio?: undefined;
|
|
@@ -889,7 +889,7 @@ declare var PlatformTemplate: ({
|
|
|
889
889
|
Cycle: number[];
|
|
890
890
|
Speed: number;
|
|
891
891
|
}[];
|
|
892
|
-
OnBind
|
|
892
|
+
OnBind(): void;
|
|
893
893
|
Perk?: undefined;
|
|
894
894
|
PerkName?: undefined;
|
|
895
895
|
HealthPerLevel?: undefined;
|
|
@@ -949,7 +949,7 @@ declare var PlatformTemplate: ({
|
|
|
949
949
|
Cycle: number[];
|
|
950
950
|
Speed: number;
|
|
951
951
|
}[];
|
|
952
|
-
OnBind
|
|
952
|
+
OnBind(): void;
|
|
953
953
|
Perk?: undefined;
|
|
954
954
|
PerkName?: undefined;
|
|
955
955
|
HealthPerLevel?: undefined;
|
|
@@ -997,7 +997,7 @@ declare var PlatformTemplate: ({
|
|
|
997
997
|
Cycle: number[];
|
|
998
998
|
Speed: number;
|
|
999
999
|
}[];
|
|
1000
|
-
OnBind
|
|
1000
|
+
OnBind(): void;
|
|
1001
1001
|
Perk?: undefined;
|
|
1002
1002
|
PerkName?: undefined;
|
|
1003
1003
|
HealthPerLevel?: undefined;
|
|
@@ -1044,7 +1044,7 @@ declare var PlatformTemplate: ({
|
|
|
1044
1044
|
Cycle: number[];
|
|
1045
1045
|
Speed: number;
|
|
1046
1046
|
}[];
|
|
1047
|
-
OnBind
|
|
1047
|
+
OnBind(): void;
|
|
1048
1048
|
Perk?: undefined;
|
|
1049
1049
|
PerkName?: undefined;
|
|
1050
1050
|
HealthPerLevel?: undefined;
|
|
@@ -1123,7 +1123,7 @@ declare var PlatformTemplate: ({
|
|
|
1123
1123
|
Damage: number[];
|
|
1124
1124
|
Speed: number;
|
|
1125
1125
|
}[];
|
|
1126
|
-
OnBind
|
|
1126
|
+
OnBind(): void;
|
|
1127
1127
|
Perk?: undefined;
|
|
1128
1128
|
PerkName?: undefined;
|
|
1129
1129
|
HealthPerLevel?: undefined;
|
|
@@ -1175,7 +1175,7 @@ declare var PlatformTemplate: ({
|
|
|
1175
1175
|
Name: string;
|
|
1176
1176
|
Speed: number;
|
|
1177
1177
|
}[];
|
|
1178
|
-
OnBind
|
|
1178
|
+
OnBind(): void;
|
|
1179
1179
|
Perk?: undefined;
|
|
1180
1180
|
PerkName?: undefined;
|
|
1181
1181
|
HealthPerLevel?: undefined;
|
|
@@ -1318,7 +1318,7 @@ declare var PlatformRoomList: ({
|
|
|
1318
1318
|
BackgroundFilter?: undefined;
|
|
1319
1319
|
} | {
|
|
1320
1320
|
Name: string;
|
|
1321
|
-
Entry
|
|
1321
|
+
Entry(): void;
|
|
1322
1322
|
Text: string;
|
|
1323
1323
|
Background: string;
|
|
1324
1324
|
Music: string;
|
|
@@ -1346,7 +1346,7 @@ declare var PlatformRoomList: ({
|
|
|
1346
1346
|
BackgroundFilter?: undefined;
|
|
1347
1347
|
} | {
|
|
1348
1348
|
Name: string;
|
|
1349
|
-
Entry
|
|
1349
|
+
Entry(): void;
|
|
1350
1350
|
Text: string;
|
|
1351
1351
|
Background: string;
|
|
1352
1352
|
AlternateBackground: string;
|
|
@@ -1402,7 +1402,7 @@ declare var PlatformRoomList: ({
|
|
|
1402
1402
|
BackgroundFilter?: undefined;
|
|
1403
1403
|
} | {
|
|
1404
1404
|
Name: string;
|
|
1405
|
-
Entry
|
|
1405
|
+
Entry(): void;
|
|
1406
1406
|
Text: string;
|
|
1407
1407
|
Background: string;
|
|
1408
1408
|
Music: string;
|
|
@@ -1426,7 +1426,7 @@ declare var PlatformRoomList: ({
|
|
|
1426
1426
|
BackgroundFilter?: undefined;
|
|
1427
1427
|
} | {
|
|
1428
1428
|
Name: string;
|
|
1429
|
-
Entry
|
|
1429
|
+
Entry(): void;
|
|
1430
1430
|
Text: string;
|
|
1431
1431
|
Background: string;
|
|
1432
1432
|
Music: string;
|
|
@@ -1450,7 +1450,7 @@ declare var PlatformRoomList: ({
|
|
|
1450
1450
|
BackgroundFilter?: undefined;
|
|
1451
1451
|
} | {
|
|
1452
1452
|
Name: string;
|
|
1453
|
-
Entry
|
|
1453
|
+
Entry(): void;
|
|
1454
1454
|
Text: string;
|
|
1455
1455
|
Background: string;
|
|
1456
1456
|
AlternateBackground: string;
|
|
@@ -1474,7 +1474,7 @@ declare var PlatformRoomList: ({
|
|
|
1474
1474
|
BackgroundFilter?: undefined;
|
|
1475
1475
|
} | {
|
|
1476
1476
|
Name: string;
|
|
1477
|
-
Entry
|
|
1477
|
+
Entry(): void;
|
|
1478
1478
|
Text: string;
|
|
1479
1479
|
Background: string;
|
|
1480
1480
|
Music: string;
|
|
@@ -1498,7 +1498,7 @@ declare var PlatformRoomList: ({
|
|
|
1498
1498
|
BackgroundFilter?: undefined;
|
|
1499
1499
|
} | {
|
|
1500
1500
|
Name: string;
|
|
1501
|
-
Entry
|
|
1501
|
+
Entry(): void;
|
|
1502
1502
|
Text: string;
|
|
1503
1503
|
Background: string;
|
|
1504
1504
|
Music: string;
|
|
@@ -1526,7 +1526,7 @@ declare var PlatformRoomList: ({
|
|
|
1526
1526
|
BackgroundFilter?: undefined;
|
|
1527
1527
|
} | {
|
|
1528
1528
|
Name: string;
|
|
1529
|
-
Entry
|
|
1529
|
+
Entry(): void;
|
|
1530
1530
|
Text: string;
|
|
1531
1531
|
Background: string;
|
|
1532
1532
|
BackgroundFilter: string;
|
|
@@ -1554,7 +1554,7 @@ declare var PlatformRoomList: ({
|
|
|
1554
1554
|
AlternateBackground?: undefined;
|
|
1555
1555
|
} | {
|
|
1556
1556
|
Name: string;
|
|
1557
|
-
Entry
|
|
1557
|
+
Entry(): void;
|
|
1558
1558
|
Text: string;
|
|
1559
1559
|
Background: string;
|
|
1560
1560
|
BackgroundFilter: string;
|
|
@@ -1606,7 +1606,7 @@ declare var PlatformRoomList: ({
|
|
|
1606
1606
|
AlternateBackground?: undefined;
|
|
1607
1607
|
} | {
|
|
1608
1608
|
Name: string;
|
|
1609
|
-
Entry
|
|
1609
|
+
Entry(): void;
|
|
1610
1610
|
Text: string;
|
|
1611
1611
|
Background: string;
|
|
1612
1612
|
BackgroundFilter: string;
|
|
@@ -1630,7 +1630,7 @@ declare var PlatformRoomList: ({
|
|
|
1630
1630
|
AlternateBackground?: undefined;
|
|
1631
1631
|
} | {
|
|
1632
1632
|
Name: string;
|
|
1633
|
-
Entry
|
|
1633
|
+
Entry(): void;
|
|
1634
1634
|
Text: string;
|
|
1635
1635
|
Background: string;
|
|
1636
1636
|
BackgroundFilter: string;
|
|
@@ -1743,7 +1743,7 @@ declare var PlatformRoomList: ({
|
|
|
1743
1743
|
Name: string;
|
|
1744
1744
|
Background: string;
|
|
1745
1745
|
Music: string;
|
|
1746
|
-
Entry
|
|
1746
|
+
Entry(): void;
|
|
1747
1747
|
Text?: undefined;
|
|
1748
1748
|
Width?: undefined;
|
|
1749
1749
|
Height?: undefined;
|
|
@@ -1775,7 +1775,7 @@ declare var PlatformRoomList: ({
|
|
|
1775
1775
|
Background: string;
|
|
1776
1776
|
AlternateBackground: string;
|
|
1777
1777
|
Music: string;
|
|
1778
|
-
Entry
|
|
1778
|
+
Entry(): void;
|
|
1779
1779
|
Width: number;
|
|
1780
1780
|
Height: number;
|
|
1781
1781
|
LimitLeft: number;
|
|
@@ -1795,7 +1795,7 @@ declare var PlatformRoomList: ({
|
|
|
1795
1795
|
BackgroundFilter?: undefined;
|
|
1796
1796
|
} | {
|
|
1797
1797
|
Name: string;
|
|
1798
|
-
Entry
|
|
1798
|
+
Entry(): void;
|
|
1799
1799
|
Text: string;
|
|
1800
1800
|
Background: string;
|
|
1801
1801
|
Music: string;
|
|
@@ -1837,7 +1837,7 @@ declare var PlatformRoomList: ({
|
|
|
1837
1837
|
Background: string;
|
|
1838
1838
|
AlternateBackground: string;
|
|
1839
1839
|
Music: string;
|
|
1840
|
-
Entry
|
|
1840
|
+
Entry(): void;
|
|
1841
1841
|
Width: number;
|
|
1842
1842
|
Height: number;
|
|
1843
1843
|
LimitLeft: number;
|
|
@@ -1865,7 +1865,7 @@ declare var PlatformRoomList: ({
|
|
|
1865
1865
|
Background: string;
|
|
1866
1866
|
AlternateBackground: string;
|
|
1867
1867
|
Music: string;
|
|
1868
|
-
Entry
|
|
1868
|
+
Entry(): void;
|
|
1869
1869
|
Width: number;
|
|
1870
1870
|
Height: number;
|
|
1871
1871
|
LimitLeft: number;
|
|
@@ -1892,7 +1892,7 @@ declare var PlatformRoomList: ({
|
|
|
1892
1892
|
Height: number;
|
|
1893
1893
|
LimitRight: number;
|
|
1894
1894
|
Heal: number;
|
|
1895
|
-
Entry
|
|
1895
|
+
Entry(): void;
|
|
1896
1896
|
Door: {
|
|
1897
1897
|
Name: string;
|
|
1898
1898
|
FromX: number;
|
|
@@ -1933,7 +1933,7 @@ declare var PlatformRoomList: ({
|
|
|
1933
1933
|
ToX: number;
|
|
1934
1934
|
ToFaceLeft?: undefined;
|
|
1935
1935
|
})[];
|
|
1936
|
-
Entry
|
|
1936
|
+
Entry(): void;
|
|
1937
1937
|
Character: {
|
|
1938
1938
|
Name: string;
|
|
1939
1939
|
Status: string;
|
|
@@ -2007,7 +2007,7 @@ declare var PlatformRoomList: ({
|
|
|
2007
2007
|
ToX: number;
|
|
2008
2008
|
ToFaceLeft?: undefined;
|
|
2009
2009
|
})[];
|
|
2010
|
-
Entry
|
|
2010
|
+
Entry(): void;
|
|
2011
2011
|
LimitLeft?: undefined;
|
|
2012
2012
|
LimitRight?: undefined;
|
|
2013
2013
|
Heal?: undefined;
|