bc-stubs 102.0.0 → 102.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bc/Messages.d.ts +7 -0
- package/bc/Screens/Character/BackgroundSelection/BackgroundSelection.d.ts +1 -1
- package/bc/Screens/Character/Preference/Preference.d.ts +2 -2
- package/bc/Screens/Online/ChatAdminRoomCustomization/ChatAdminRoomCustomization.d.ts +2 -2
- package/bc/Screens/Online/ChatSearch/ChatSearch.d.ts +1 -1
- package/bc/Screens/Room/Crafting/Crafting.d.ts +2 -1
- package/bc/Scripts/Common.d.ts +2 -2
- package/bc/Scripts/Dialog.d.ts +3 -3
- package/bc/Scripts/Inventory.d.ts +1 -1
- package/package.json +3 -3
package/bc/Messages.d.ts
CHANGED
|
@@ -227,6 +227,13 @@ interface ServerChatRoomMapData {
|
|
|
227
227
|
Objects: string;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
+
interface ServerChatRoomCustomData {
|
|
231
|
+
ImageURL?: string;
|
|
232
|
+
ImageFilter?: string;
|
|
233
|
+
MusicURL?: string;
|
|
234
|
+
SizeMode?: number
|
|
235
|
+
}
|
|
236
|
+
|
|
230
237
|
/**
|
|
231
238
|
* A chatroom's settings
|
|
232
239
|
*
|
|
@@ -74,7 +74,7 @@ declare var BackgroundSelectionSelect: string;
|
|
|
74
74
|
declare var BackgroundSelectionSize: number;
|
|
75
75
|
declare var BackgroundSelectionOffset: number;
|
|
76
76
|
/** @type {null | ((selection: string) => void)} */
|
|
77
|
-
declare var BackgroundSelectionCallback: (selection: string) => void;
|
|
77
|
+
declare var BackgroundSelectionCallback: null | ((selection: string) => void);
|
|
78
78
|
/** @type {"" | ModuleType} */
|
|
79
79
|
declare var BackgroundSelectionPreviousModule: "" | ModuleType;
|
|
80
80
|
declare var BackgroundSelectionPreviousScreen: string;
|
|
@@ -678,7 +678,7 @@ declare namespace PreferenceActivityEnjoymentDefault {
|
|
|
678
678
|
let Other: ArousalFactor;
|
|
679
679
|
}
|
|
680
680
|
declare namespace PreferenceActivityEnjoymentValidate {
|
|
681
|
-
let Name_1: (arg: ActivityName, C: Character) => ActivityName;
|
|
681
|
+
let Name_1: (arg: ActivityName, C: Character) => undefined | ActivityName;
|
|
682
682
|
export { Name_1 as Name };
|
|
683
683
|
export function Self_1(arg: ArousalFactor, C: Character): ArousalFactor;
|
|
684
684
|
export { Self_1 as Self };
|
|
@@ -707,7 +707,7 @@ declare namespace PreferenceArousalZoneDefault {
|
|
|
707
707
|
export let Orgasm: boolean;
|
|
708
708
|
}
|
|
709
709
|
declare namespace PreferenceArousalZoneValidate {
|
|
710
|
-
let Name_4: (arg: AssetGroupName, C: Character) => AssetGroupItemName;
|
|
710
|
+
let Name_4: (arg: AssetGroupName, C: Character) => undefined | AssetGroupItemName;
|
|
711
711
|
export { Name_4 as Name };
|
|
712
712
|
export function Factor_2(arg: ArousalFactor, C: Character): ArousalFactor;
|
|
713
713
|
export { Factor_2 as Factor };
|
|
@@ -18,11 +18,11 @@ declare function ChatAdminRoomCustomizationLoad(): void;
|
|
|
18
18
|
declare function ChatAdminRoomCustomizationPlayMusic(Music: string): void;
|
|
19
19
|
/**
|
|
20
20
|
* Runs the customization on the current screen, can be called from elsewhere
|
|
21
|
-
* @param {
|
|
21
|
+
* @param {ServerChatRoomCustomData} Custom - The customazation to apply
|
|
22
22
|
* @param {boolean} Draw - If we must draw directly or keep values to be used by online chat rooms
|
|
23
23
|
* @returns {void} - Nothing
|
|
24
24
|
*/
|
|
25
|
-
declare function ChatAdminRoomCustomizationProcess(Custom:
|
|
25
|
+
declare function ChatAdminRoomCustomizationProcess(Custom: ServerChatRoomCustomData, Draw: boolean): void;
|
|
26
26
|
/**
|
|
27
27
|
* When the chat Admin Custom screen runs, draws the screen
|
|
28
28
|
* @returns {void} - Nothing
|
|
@@ -144,7 +144,7 @@ declare function ChatSearchResponse(data: ServerChatRoomSearchResponse): void;
|
|
|
144
144
|
* @param {ServerChatRoomSearchData} searchData - The (potentially) to-be censored search result
|
|
145
145
|
* @returns {null | { DisplayName: string, Description: string }} - The censored name and description or, if fully censored, return `null` instead
|
|
146
146
|
*/
|
|
147
|
-
declare function ChatSearchCensor(searchData: ServerChatRoomSearchData): {
|
|
147
|
+
declare function ChatSearchCensor(searchData: ServerChatRoomSearchData): null | {
|
|
148
148
|
DisplayName: string;
|
|
149
149
|
Description: string;
|
|
150
150
|
};
|
|
@@ -119,8 +119,9 @@ declare function CraftingExit(): void;
|
|
|
119
119
|
* Applies the craft to all matching items
|
|
120
120
|
* @param {CraftingItem} Craft
|
|
121
121
|
* @param {Asset} Item
|
|
122
|
+
* @returns {Asset | boolean}
|
|
122
123
|
*/
|
|
123
|
-
declare function CraftingAppliesToItem(Craft: CraftingItem, Item: Asset):
|
|
124
|
+
declare function CraftingAppliesToItem(Craft: CraftingItem, Item: Asset): Asset | boolean;
|
|
124
125
|
/**
|
|
125
126
|
* Builds the item list from the player inventory, filters by the search box content
|
|
126
127
|
* @returns {void} - Nothing
|
package/bc/Scripts/Common.d.ts
CHANGED
|
@@ -353,7 +353,7 @@ declare function CommonIsObject(value: unknown): value is Record<string, unknown
|
|
|
353
353
|
* @param {null | ((this: any, key: string, value: any) => any)} reviver
|
|
354
354
|
* @returns {T}
|
|
355
355
|
*/
|
|
356
|
-
declare function CommonCloneDeep<T>(obj: T, reviver?: (this: any, key: string, value: any) => any, replacer?: (this: any, key: string, value: any) => any): T;
|
|
356
|
+
declare function CommonCloneDeep<T>(obj: T, reviver?: null | ((this: any, key: string, value: any) => any), replacer?: null | ((this: any, key: string, value: any) => any)): T;
|
|
357
357
|
/**
|
|
358
358
|
* Type guard which checks that a value is a non-negative (i.e. positive or zero) integer
|
|
359
359
|
* @param {unknown} value - The value to test
|
|
@@ -577,7 +577,7 @@ declare function CommonCapitalize<T extends string>(string: T): Capitalize<T>;
|
|
|
577
577
|
* Generally only relevant if one of the fields contains non-JSON-serializible data.
|
|
578
578
|
* @returns {VariableContainer<T1, T2>} - The newly created object
|
|
579
579
|
*/
|
|
580
|
-
declare function CommonVariableContainer<T1, T2 = {}>(defaults: T1, extraVars?: T2, resetCallbacks?: {
|
|
580
|
+
declare function CommonVariableContainer<T1, T2 = {}>(defaults: T1, extraVars?: T2, resetCallbacks?: null | {
|
|
581
581
|
replacer?: (this: any, key: string, value: any) => any;
|
|
582
582
|
reviver?: (this: any, key: string, value: any) => any;
|
|
583
583
|
}): VariableContainer<T1, T2>;
|
package/bc/Scripts/Dialog.d.ts
CHANGED
|
@@ -998,11 +998,11 @@ declare namespace DialogLeaveFocusItemHandlers {
|
|
|
998
998
|
declare namespace DialogEffectIcons {
|
|
999
999
|
let Table: Partial<Record<InventoryIcon, readonly EffectName[]>>;
|
|
1000
1000
|
function GetIcons(item: Item): InventoryIcon[];
|
|
1001
|
-
let GetEffectIcons: (effects: EffectName[], prop?: CraftingPropertyType) => InventoryIcon[];
|
|
1001
|
+
let GetEffectIcons: (effects: EffectName[], prop?: CraftingPropertyType) => null | InventoryIcon[];
|
|
1002
1002
|
function _GetGagIcon(effect: EffectName, prop?: CraftingPropertyType): InventoryIcon;
|
|
1003
1003
|
function _GetBlindIcon(effect: EffectName, prop?: CraftingPropertyType): InventoryIcon;
|
|
1004
1004
|
function _GetDeafIcon(effect: EffectName): InventoryIcon;
|
|
1005
|
-
let _GagLevelToIcon: (level?: number) => InventoryIcon;
|
|
1006
|
-
let _BlindLevelToIcon: (level?: number) => InventoryIcon;
|
|
1005
|
+
let _GagLevelToIcon: (level?: number) => null | InventoryIcon;
|
|
1006
|
+
let _BlindLevelToIcon: (level?: number) => null | InventoryIcon;
|
|
1007
1007
|
}
|
|
1008
1008
|
declare function DialogMouseWheel(Event: any): boolean;
|
|
@@ -213,7 +213,7 @@ declare function InventoryWearRandom(C: Character, GroupName: AssetGroupName, Di
|
|
|
213
213
|
* @param {null | Character} [C_Source] - The character setting the new item option. If `null`, assume that it is _not_ the player character.
|
|
214
214
|
* @returns {Item | null} - The equipped item (if any)
|
|
215
215
|
*/
|
|
216
|
-
declare function InventoryRandomExtend(C: Character, GroupName: AssetGroupName, C_Source?: null | Character): Item;
|
|
216
|
+
declare function InventoryRandomExtend(C: Character, GroupName: AssetGroupName, C_Source?: null | Character): Item | null;
|
|
217
217
|
/**
|
|
218
218
|
* Select a random asset from a group, narrowed to the most preferable available options (i.e
|
|
219
219
|
* unblocked/visible/unlimited) based on their binary "rank"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bc-stubs",
|
|
3
|
-
"version": "102.0.
|
|
3
|
+
"version": "102.0.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@github.com/bananarama92/BC-stubs.git"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@types/lz-string": "1.3.34"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"typescript": "^5.4.
|
|
25
|
+
"typescript": "^5.4.4"
|
|
26
26
|
},
|
|
27
|
-
"typeScriptVersion": "^5.4.
|
|
27
|
+
"typeScriptVersion": "^5.4.4"
|
|
28
28
|
}
|