bc-stubs 116.0.0-Beta.1 → 116.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.
|
@@ -4890,6 +4890,8 @@ interface ShopItem {
|
|
|
4890
4890
|
readonly Asset: Asset,
|
|
4891
4891
|
/** The assets sorting priority within the asset list; lower values take priority */
|
|
4892
4892
|
readonly SortPriority: number,
|
|
4893
|
+
/** Whether the player is forbidden to buy the item */
|
|
4894
|
+
readonly CannotBuy: boolean,
|
|
4893
4895
|
/** Whether an item should never be able to be sold */
|
|
4894
4896
|
readonly NeverSell: boolean,
|
|
4895
4897
|
/** Whether the asset can be bought; `false` implies that it can be sold */
|
package/bc/Scripts/Asset.d.ts
CHANGED
|
@@ -174,6 +174,11 @@ declare function AssetActivitiesForGroup(family: IAssetFamily, groupname: AssetG
|
|
|
174
174
|
* @returns {AssetGroupMapping[T] | null} - The asset group matching the provided family and group name
|
|
175
175
|
*/
|
|
176
176
|
declare function AssetGroupGet<T extends AssetGroupName>(Family: IAssetFamily, Group: T): AssetGroupMapping[T] | null;
|
|
177
|
+
/**
|
|
178
|
+
* Check whether a group can be hidden through the item visibility settings
|
|
179
|
+
* @param {AssetGroup} group
|
|
180
|
+
*/
|
|
181
|
+
declare function AssetGroupIsHideable(group: AssetGroup): boolean;
|
|
177
182
|
/**
|
|
178
183
|
* Utility function for retrieving the preview image directory path for an asset
|
|
179
184
|
* @param {Asset} A - The asset whose preview path to retrieve
|
package/bc/Scripts/GLDraw.d.ts
CHANGED
|
@@ -178,8 +178,8 @@ declare var GLDrawCacheLoadedImages: number;
|
|
|
178
178
|
declare var GLDrawCacheTotalImages: number;
|
|
179
179
|
/** @type {"webgl2"|"webgl"|"No WebGL"} */
|
|
180
180
|
declare var GLVersion: "webgl2" | "webgl" | "No WebGL";
|
|
181
|
-
/** @type {HTMLCanvasElement} */
|
|
182
|
-
declare var GLDrawCanvas: HTMLCanvasElement;
|
|
181
|
+
/** @type {null | HTMLCanvasElement} */
|
|
182
|
+
declare var GLDrawCanvas: null | HTMLCanvasElement;
|
|
183
183
|
/**
|
|
184
184
|
* How many seconds to wait before forcefully resetting the canvas after a
|
|
185
185
|
* context loss
|