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;
@@ -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
@@ -80,4 +80,5 @@ declare var GameWorker: Worker | null;
80
80
  declare var CommonVersionUpdated: boolean;
81
81
  /** @type {TouchList | null} */
82
82
  declare var CommonTouchList: TouchList | null;
83
+ declare const DEFAULT_FRAMERATE: 60;
83
84
  declare var GameMouseIsDown: boolean;
@@ -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
@@ -1684,6 +1684,9 @@ interface GraphicsSettingsType {
1684
1684
  SmoothZoom: boolean;
1685
1685
  CenterChatrooms: boolean;
1686
1686
  AllowBlur: boolean;
1687
+ ShowFPS: boolean;
1688
+ /** 0 means unlimited */
1689
+ MaxFPS: number;
1687
1690
  }
1688
1691
 
1689
1692
  interface RestrictionSettingsType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bc-stubs",
3
- "version": "103.0.0-Beta.2",
3
+ "version": "103.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/bananarama92/BC-stubs.git"