@akashic/game-configuration
Advanced tools
Comparing version 1.10.0 to 1.11.0
@@ -5,3 +5,3 @@ import type { AudioAssetHint, ImageAssetHint, VectorImageAssetHint, CommonArea } from "@akashic/pdi-types"; | ||
*/ | ||
export declare type AssetConfigurationMap = { | ||
export type AssetConfigurationMap = { | ||
[key: string]: AssetConfiguration; | ||
@@ -12,3 +12,3 @@ }; | ||
*/ | ||
export declare type ModuleMainScriptsMap = { | ||
export type ModuleMainScriptsMap = { | ||
[path: string]: string; | ||
@@ -26,6 +26,6 @@ }; | ||
*/ | ||
export declare type AudioSystemConfigurationMap = { | ||
export type AudioSystemConfigurationMap = { | ||
[key: string]: AudioSystemConfiguration; | ||
}; | ||
export declare type AssetConfiguration = AudioAssetConfigurationBase | ImageAssetConfigurationBase | TextAssetConfigurationBase | ScriptAssetConfigurationBase | VideoAssetConfigurationBase | VectorImageAssetConfigurationBase; | ||
export type AssetConfiguration = AudioAssetConfigurationBase | ImageAssetConfigurationBase | TextAssetConfigurationBase | ScriptAssetConfigurationBase | VideoAssetConfigurationBase | VectorImageAssetConfigurationBase | BinaryAssetConfigurationBase; | ||
/** | ||
@@ -36,3 +36,3 @@ * Assetの設定の共通部分。 | ||
/** | ||
* Assetの種類。"image", "audio", "script", "text", "video" のいずれか。 | ||
* Assetの種類。 | ||
*/ | ||
@@ -65,3 +65,3 @@ type: string; | ||
*/ | ||
export declare type CommonAreaShortened = [number, number, number, number]; | ||
export type CommonAreaShortened = [number, number, number, number]; | ||
/** | ||
@@ -171,2 +171,12 @@ * ImageAssetの設定。 | ||
preload?: boolean; | ||
/** | ||
* このアセットが公開する変数名の配列。指定された場合、 module.exports の一部を上書きする。 | ||
* 通常は指定する必要のない値であるが、 CommonJS の形式で書かれていないスクリプトを利用するなどの際に用いることができる。 | ||
* `["foo", "bar"]` を指定した場合、対象のスクリプトアセットの末尾に以下のコードが挿入されたかのように扱われる。 | ||
* ``` | ||
* exports["foo"] = foo; | ||
* exports["bar"] = bar; | ||
* ``` | ||
*/ | ||
exports?: string[]; | ||
} | ||
@@ -194,1 +204,14 @@ /** | ||
} | ||
/** | ||
* BinaryAssetの設定。 | ||
*/ | ||
export interface BinaryAssetConfigurationBase extends AssetConfigurationBase { | ||
/** | ||
* Assetの種類。 | ||
*/ | ||
type: "binary"; | ||
/** | ||
* ファイル内容のバイト配列。 | ||
*/ | ||
data: ArrayBuffer; | ||
} |
@@ -123,6 +123,6 @@ import type { AssetConfiguration, AssetConfigurationMap, AudioSystemConfigurationMap, ModuleMainScriptsMap } from "./AssetConfiguration"; | ||
} | ||
export declare type AtsumaruSupportedModes = "multi"; | ||
export declare type NicoliveSupportedModes = "single" | "ranking" | "multi_admission" | "multi"; | ||
export type AtsumaruSupportedModes = "multi"; | ||
export type NicoliveSupportedModes = "single" | "ranking" | "multi_admission" | "multi"; | ||
export interface External { | ||
[key: string]: string; | ||
} |
@@ -1,1 +0,1 @@ | ||
export declare type LoadGameConfigurationFunc = (url: string, callback: (err: any, configuration: any) => void) => void; | ||
export type LoadGameConfigurationFunc = (url: string, callback: (err: any, configuration: any) => void) => void; |
import type { NormalizedGameConfiguration } from "../GameConfiguration"; | ||
import type { LoadGameConfigurationFunc } from "./types"; | ||
export declare type LoadConfigurationFunc = ReturnType<typeof makeLoadConfigurationFunc>; | ||
export type LoadConfigurationFunc = ReturnType<typeof makeLoadConfigurationFunc>; | ||
export declare function makeLoadConfigurationFunc(loadConfiguration: LoadGameConfigurationFunc): (url: string, assetBase: string | undefined, cascadeBase: string | undefined, callback: (err: Error | null, conf?: NormalizedGameConfiguration) => void) => void; | ||
@@ -5,0 +5,0 @@ /** |
{ | ||
"name": "@akashic/game-configuration", | ||
"version": "1.10.0", | ||
"version": "1.11.0", | ||
"description": "Type definitions and utilities for game.json, the manifest file for Akashic Engine.", | ||
@@ -89,3 +89,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@akashic/pdi-types": "^1.7.0" | ||
"@akashic/pdi-types": "^1.10.0" | ||
}, | ||
@@ -111,3 +111,3 @@ "optionalDependencies": { | ||
"ts-jest": "^29.0.0", | ||
"typescript": "^4.7.4" | ||
"typescript": "^5.0.0" | ||
}, | ||
@@ -114,0 +114,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35119
779
Updated@akashic/pdi-types@^1.10.0