bc-stubs 103.0.0-Beta.2 → 103.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.
|
@@ -651,6 +651,7 @@ declare var PreferenceGraphicsPowerModeIndex: null | number;
|
|
|
651
651
|
/** @type {null | WebGLContextAttributes} */
|
|
652
652
|
declare var PreferenceGraphicsWebGLOptions: null | WebGLContextAttributes;
|
|
653
653
|
declare var PreferenceGraphicsAnimationQualityList: number[];
|
|
654
|
+
declare var PreferenceGraphicsFrameLimit: number[];
|
|
654
655
|
/** @type {string[]} */
|
|
655
656
|
declare var PreferenceCensoredWordsList: string[];
|
|
656
657
|
declare var PreferenceCensoredWordsOffset: number;
|
package/bc/Scripts/Common.d.ts
CHANGED
|
@@ -477,6 +477,15 @@ declare function CommonEnumerate<T>(iterable: Iterable<T>, start?: number, step?
|
|
|
477
477
|
* @returns {number}
|
|
478
478
|
*/
|
|
479
479
|
declare function CommonClamp(value: number, min: number, max: number): number;
|
|
480
|
+
/**
|
|
481
|
+
* Return value % divisor but properly handling negative values
|
|
482
|
+
*
|
|
483
|
+
* Useful if you have a set of keys and want to move an index within its bounds with proper wrap-around.
|
|
484
|
+
*
|
|
485
|
+
* @param {number} value
|
|
486
|
+
* @param {number} divisor
|
|
487
|
+
*/
|
|
488
|
+
declare function CommonModulo(value: number, divisor: number): number;
|
|
480
489
|
/**
|
|
481
490
|
* Returns TRUE if the URL is valid, is from http or https or screens/ or backgrounds/ and has the required extension
|
|
482
491
|
* @param {string} TestURL - The URL to test
|
package/bc/Scripts/Game.d.ts
CHANGED
package/bc/Scripts/Struggle.d.ts
CHANGED
|
@@ -26,7 +26,18 @@ declare function StruggleProgressGetOperation(C: Character, PrevItem: Item, Next
|
|
|
26
26
|
* @returns {boolean} - TRUE if it's allowed
|
|
27
27
|
*/
|
|
28
28
|
declare function StruggleAllowLoosen(): boolean;
|
|
29
|
-
declare function StruggleKeyDown(event: KeyboardEvent): boolean;
|
|
29
|
+
declare function StruggleKeyDown(event: KeyboardEvent): boolean; /**
|
|
30
|
+
* Starts the given struggle minigame.
|
|
31
|
+
*
|
|
32
|
+
* This function initializes the common state and calls the requested minigame
|
|
33
|
+
* setup function.
|
|
34
|
+
*
|
|
35
|
+
* @param {Character} C - The character currently doing the struggling, either on itself (ie. as Player), or on someone else.
|
|
36
|
+
* @param {StruggleKnownMinigames} MiniGame - The minigame to start
|
|
37
|
+
* @param {Item | null} PrevItem - The item currently being present on the character, or null if none
|
|
38
|
+
* @param {Item} NextItem - The item currently being added on the character, or null if it's a removal
|
|
39
|
+
* @param {StruggleCompletionCallback} Completion - A callback that will be called when the minigame ends
|
|
40
|
+
*/
|
|
30
41
|
declare function StruggleMouseDown(event: MouseEvent | TouchEvent): void;
|
|
31
42
|
/**
|
|
32
43
|
* Handles the minigames' Click event, whether on the selection screen or in the minigame themselves.
|
package/bc/Typedef.d.ts
CHANGED