@akashic/akashic-engine
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -1,3 +0,3 @@ | ||
import { AudioAsset, ImageAsset, ScriptAsset, TextAsset, VectorImageAsset } from "@akashic/pdi-types"; | ||
import { AssetManager } from "./AssetManager"; | ||
import type { AudioAsset, ImageAsset, ScriptAsset, TextAsset, VectorImageAsset } from "@akashic/pdi-types"; | ||
import type { AssetManager } from "./AssetManager"; | ||
/** | ||
@@ -4,0 +4,0 @@ * アセットへのアクセスを提供するアクセッサ群。 |
@@ -1,5 +0,5 @@ | ||
import { Asset, AssetLoadError } from "@akashic/pdi-types"; | ||
import { AssetLoadFailureInfo } from "./AssetLoadFailureInfo"; | ||
import { AssetManager } from "./AssetManager"; | ||
import { DynamicAssetConfiguration } from "./DynamicAssetConfiguration"; | ||
import type { Asset, AssetLoadError } from "@akashic/pdi-types"; | ||
import type { AssetLoadFailureInfo } from "./AssetLoadFailureInfo"; | ||
import type { AssetManager } from "./AssetManager"; | ||
import type { DynamicAssetConfiguration } from "./DynamicAssetConfiguration"; | ||
export interface DestroyedCheckable { | ||
@@ -6,0 +6,0 @@ destroyed(): boolean; |
@@ -1,2 +0,2 @@ | ||
import { Asset, AssetLoadError } from "@akashic/pdi-types"; | ||
import type { Asset, AssetLoadError } from "@akashic/pdi-types"; | ||
/** | ||
@@ -3,0 +3,0 @@ * `Asset` の読み込み失敗を通知するインターフェース。 |
@@ -1,7 +0,7 @@ | ||
import { AssetConfigurationMap, AudioSystemConfigurationMap, ModuleMainScriptsMap } from "@akashic/game-configuration"; | ||
import { Asset, AssetLoadHandler, AudioAsset, AssetLoadError, ImageAsset, ResourceFactory, ScriptAsset, TextAsset, VideoAsset, VectorImageAsset } from "@akashic/pdi-types"; | ||
import { AssetManagerLoadHandler } from "./AssetManagerLoadHandler"; | ||
import { AudioSystem } from "./AudioSystem"; | ||
import { AudioSystemManager } from "./AudioSystemManager"; | ||
import { DynamicAssetConfiguration } from "./DynamicAssetConfiguration"; | ||
import type { AssetConfigurationMap, AudioSystemConfigurationMap, ModuleMainScriptsMap } from "@akashic/game-configuration"; | ||
import type { Asset, AssetLoadHandler, AudioAsset, AssetLoadError, ImageAsset, ResourceFactory, ScriptAsset, TextAsset, VideoAsset, VectorImageAsset } from "@akashic/pdi-types"; | ||
import type { AssetManagerLoadHandler } from "./AssetManagerLoadHandler"; | ||
import type { AudioSystem } from "./AudioSystem"; | ||
import type { AudioSystemManager } from "./AudioSystemManager"; | ||
import type { DynamicAssetConfiguration } from "./DynamicAssetConfiguration"; | ||
export declare type OneOfAsset = AudioAsset | ImageAsset | ScriptAsset | TextAsset | VideoAsset | VectorImageAsset; | ||
@@ -26,5 +26,3 @@ export interface AssetManagerParameterGameLike { | ||
*/ | ||
configuration: { | ||
[key: string]: any; | ||
}; | ||
configuration: AssetConfigurationMap; | ||
/** | ||
@@ -194,3 +192,3 @@ * require解決用の仮想パスからアセットIDを引くためのテーブル。 | ||
*/ | ||
_normalize(configuration: any, audioSystemConfMap: AudioSystemConfigurationMap): any; | ||
_normalize(configuration: AssetConfigurationMap, audioSystemConfMap: AudioSystemConfigurationMap): AssetConfigurationMap; | ||
/** | ||
@@ -197,0 +195,0 @@ * @private |
@@ -113,3 +113,3 @@ "use strict"; | ||
var conf_1 = this.configuration[assetId]; | ||
this._virtualPathToIdTable[conf_1.virtualPath] = assetId; | ||
this._virtualPathToIdTable[conf_1.virtualPath] = assetId; // virtualPath の存在は _normalize() で確認済みのため 非 null アサーションとする | ||
} | ||
@@ -301,3 +301,3 @@ } | ||
if (!asset || type !== asset.type) | ||
throw ExceptionFactory_1.ExceptionFactory.createAssertionError("AssetManager#peekLiveAssetByAccessorPath(): No " + type + " asset for " + accessorPath); | ||
throw ExceptionFactory_1.ExceptionFactory.createAssertionError("AssetManager#peekLiveAssetByAccessorPath(): No ".concat(type, " asset for ").concat(accessorPath)); | ||
return asset; | ||
@@ -314,3 +314,3 @@ }; | ||
if (!asset || type !== asset.type) | ||
throw ExceptionFactory_1.ExceptionFactory.createAssertionError("SceneAssetManager#_getById(): No " + type + " asset for id " + assetId); | ||
throw ExceptionFactory_1.ExceptionFactory.createAssertionError("SceneAssetManager#_getById(): No ".concat(type, " asset for id ").concat(assetId)); | ||
return asset; | ||
@@ -578,3 +578,3 @@ }; | ||
if (this.configuration[asset.id]) { | ||
var virtualPath = this.configuration[asset.id].virtualPath; | ||
var virtualPath = this.configuration[asset.id].virtualPath; // virtualPath の存在は _normalize() で確認済みのため 非 null アサーションとする | ||
if (!this._liveAssetVirtualPathTable.hasOwnProperty(virtualPath)) { | ||
@@ -581,0 +581,0 @@ this._liveAssetVirtualPathTable[virtualPath] = asset; |
@@ -1,2 +0,2 @@ | ||
import { Asset, AssetLoadError } from "@akashic/pdi-types"; | ||
import type { Asset, AssetLoadError } from "@akashic/pdi-types"; | ||
/** | ||
@@ -3,0 +3,0 @@ * `AssetManager` から `Asset` の読み込みまたは読み込み失敗を受け取るハンドラのインターフェース定義。 |
@@ -1,2 +0,2 @@ | ||
import { AudioAsset, AudioPlayer, AudioPlayerEvent, ResourceFactory, AudioSystem as PdiAudioSystem } from "@akashic/pdi-types"; | ||
import type { AudioAsset, AudioPlayer, AudioPlayerEvent, ResourceFactory, AudioSystem as PdiAudioSystem } from "@akashic/pdi-types"; | ||
export interface AudioSystemParameterObject { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { ResourceFactory } from "@akashic/pdi-types"; | ||
import { AudioSystem } from "./AudioSystem"; | ||
import type { ResourceFactory } from "@akashic/pdi-types"; | ||
import type { AudioSystem } from "./AudioSystem"; | ||
/** | ||
@@ -4,0 +4,0 @@ * `AudioSystem` の管理クラス。 |
@@ -1,2 +0,2 @@ | ||
import { Asset, AssetLoadHandler, Surface, VectorImageAsset, VectorImageAssetHint } from "@akashic/pdi-types"; | ||
import type { Asset, AssetLoadHandler, Surface, VectorImageAsset, VectorImageAssetHint } from "@akashic/pdi-types"; | ||
import { Trigger } from "@akashic/trigger"; | ||
@@ -3,0 +3,0 @@ export declare class EmptyVectorImageAsset implements VectorImageAsset { |
@@ -1,2 +0,2 @@ | ||
import { Asset, AssetLoadError, AssetLoadHandler, CommonArea, ImageAsset, ImageAssetHint, ResourceFactory, Surface } from "@akashic/pdi-types"; | ||
import type { Asset, AssetLoadError, AssetLoadHandler, CommonArea, ImageAsset, ImageAssetHint, ResourceFactory, Surface } from "@akashic/pdi-types"; | ||
import { Trigger } from "@akashic/trigger"; | ||
@@ -3,0 +3,0 @@ /** |
@@ -32,3 +32,3 @@ "use strict"; | ||
this._resourceFactory = resourceFactory; | ||
var internalId = id + "/<internal>"; // AssetManager が管理しないので値は何でもよいが、わかりやすさのため `id` を元にしておく | ||
var internalId = "".concat(id, "/<internal>"); // AssetManager が管理しないので値は何でもよいが、わかりやすさのため `id` を元にしておく | ||
this._src = resourceFactory.createImageAsset(internalId, uri, width, height); | ||
@@ -35,0 +35,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { GlyphArea, Glyph, ImageAsset, Surface } from "@akashic/pdi-types"; | ||
import type { GlyphArea, Glyph, ImageAsset, Surface } from "@akashic/pdi-types"; | ||
import { Font } from "./Font"; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { Renderer } from "@akashic/pdi-types"; | ||
import type { Renderer } from "@akashic/pdi-types"; | ||
/** | ||
@@ -3,0 +3,0 @@ * カメラを表すインターフェース。 |
@@ -1,4 +0,5 @@ | ||
import { Renderer } from "@akashic/pdi-types"; | ||
import { Camera } from "./Camera"; | ||
import { Object2D, Object2DParameterObject } from "./Object2D"; | ||
import type { Renderer } from "@akashic/pdi-types"; | ||
import type { Camera } from "./Camera"; | ||
import type { Object2DParameterObject } from "./Object2D"; | ||
import { Object2D } from "./Object2D"; | ||
export interface Camera2DSerialization { | ||
@@ -5,0 +6,0 @@ param: Camera2DParameterObject; |
@@ -1,3 +0,3 @@ | ||
import { CommonArea, CommonOffset } from "@akashic/pdi-types"; | ||
import { E } from "./entities/E"; | ||
import type { CommonArea, CommonOffset } from "@akashic/pdi-types"; | ||
import type { E } from "./entities/E"; | ||
/** | ||
@@ -4,0 +4,0 @@ * オブジェクトなどの衝突判定機能を提供する。 |
@@ -1,7 +0,7 @@ | ||
import { Asset } from "@akashic/pdi-types"; | ||
import { Game } from "./Game"; | ||
import type { Asset } from "@akashic/pdi-types"; | ||
import type { Game } from "./Game"; | ||
import { LoadingScene } from "./LoadingScene"; | ||
import { Scene } from "./Scene"; | ||
import type { Scene } from "./Scene"; | ||
/** | ||
* `DeafultLoadingScene` のコンストラクタに渡すことができるパラメータ。 | ||
* `DefaultLoadingScene` のコンストラクタに渡すことができるパラメータ。 | ||
* 汎用性のあるクラスではなく、カスタマイズすべき余地は大きくないので LoadingSceneParameterObject は継承していない。 | ||
@@ -30,3 +30,3 @@ */ | ||
/** | ||
* `DeafultLoadingScene` のインスタンスを生成する。 | ||
* `DefaultLoadingScene` のインスタンスを生成する。 | ||
* @param param 初期化に用いるパラメータのオブジェクト | ||
@@ -33,0 +33,0 @@ */ |
@@ -19,52 +19,6 @@ "use strict"; | ||
exports.DefaultLoadingScene = void 0; | ||
var E_1 = require("./entities/E"); | ||
var CameraCancellingE_1 = require("./entities/CameraCancellingE"); | ||
var FilledRect_1 = require("./entities/FilledRect"); | ||
var LoadingScene_1 = require("./LoadingScene"); | ||
var Object2D_1 = require("./Object2D"); | ||
/** | ||
* カメラのtransformを戻すエンティティ。 | ||
* LoadingSceneのインジケータがカメラの影響を受けないようにするための内部エンティティ。 | ||
*/ | ||
var CameraCancellingE = /** @class */ (function (_super) { | ||
__extends(CameraCancellingE, _super); | ||
function CameraCancellingE(param) { | ||
var _this = _super.call(this, param) || this; | ||
_this._canceller = new Object2D_1.Object2D(); | ||
return _this; | ||
} | ||
CameraCancellingE.prototype.renderSelf = function (renderer, camera) { | ||
if (!this.children) | ||
return false; | ||
if (camera) { | ||
var c = camera; | ||
var canceller = this._canceller; | ||
if (c.x !== canceller.x || | ||
c.y !== canceller.y || | ||
c.angle !== canceller.angle || | ||
c.scaleX !== canceller.scaleX || | ||
c.scaleY !== canceller.scaleY) { | ||
canceller.x = c.x; | ||
canceller.y = c.y; | ||
canceller.angle = c.angle; | ||
canceller.scaleX = c.scaleX; | ||
canceller.scaleY = c.scaleY; | ||
if (canceller._matrix) { | ||
canceller._matrix._modified = true; | ||
} | ||
} | ||
renderer.save(); | ||
renderer.transform(canceller.getMatrix()._matrix); | ||
} | ||
// Note: concatしていないのでunsafeだが、render中に配列の中身が変わる事はない前提とする | ||
var children = this.children; | ||
for (var i = 0; i < children.length; ++i) | ||
children[i].render(renderer, camera); | ||
if (camera) { | ||
renderer.restore(); | ||
} | ||
return false; | ||
}; | ||
return CameraCancellingE; | ||
}(E_1.E)); | ||
/** | ||
* デフォルトローディングシーン。 | ||
@@ -78,3 +32,3 @@ * | ||
/** | ||
* `DeafultLoadingScene` のインスタンスを生成する。 | ||
* `DefaultLoadingScene` のインスタンスを生成する。 | ||
* @param param 初期化に用いるパラメータのオブジェクト | ||
@@ -119,3 +73,3 @@ */ | ||
var gauge; | ||
this.append(new CameraCancellingE({ | ||
this.append(new CameraCancellingE_1.CameraCancellingE({ | ||
scene: this, | ||
@@ -122,0 +76,0 @@ children: [ |
@@ -1,3 +0,2 @@ | ||
import { AssetConfigurationCommonBase, CommonAreaShortened } from "@akashic/game-configuration"; | ||
import { AudioAssetHint, ImageAssetHint, CommonArea } from "@akashic/pdi-types"; | ||
import type { AssetConfigurationCommonBase, AudioAssetConfigurationBase, ImageAssetConfigurationBase, ScriptAssetConfigurationBase, TextAssetConfigurationBase, VideoAssetConfigurationBase } from "@akashic/game-configuration"; | ||
export declare type DynamicAssetConfiguration = DynamicAudioAssetConfigurationBase | DynamicImageAssetConfigurationBase | DynamicTextAssetConfigurationBase | DynamicScriptAssetConfigurationBase | DynamicVideoAssetConfigurationBase; | ||
@@ -22,24 +21,3 @@ /** | ||
*/ | ||
export interface DynamicImageAssetConfigurationBase extends DynamicAssetConfigurationBase { | ||
/** | ||
* Assetの種類。 | ||
*/ | ||
type: "image"; | ||
/** | ||
* 幅。 | ||
*/ | ||
width: number; | ||
/** | ||
* 高さ。 | ||
*/ | ||
height: number; | ||
/** | ||
* ヒント。akashic-engineが最適なパフォーマンスを発揮するための情報。 | ||
*/ | ||
hint?: ImageAssetHint; | ||
/** | ||
* 切り出す領域。 | ||
* 指定した場合、その部分だけの画像アセットとして扱う。 | ||
*/ | ||
slice?: CommonArea | CommonAreaShortened; | ||
export interface DynamicImageAssetConfigurationBase extends Omit<DynamicAssetConfigurationBase, "type">, Omit<ImageAssetConfigurationBase, UnneededKeysForDynamicAsset> { | ||
} | ||
@@ -49,23 +27,3 @@ /** | ||
*/ | ||
export interface DynamicVideoAssetConfigurationBase extends DynamicAssetConfigurationBase { | ||
/** | ||
* Assetの種類。 | ||
*/ | ||
type: "video"; | ||
/** | ||
* 幅。 | ||
*/ | ||
width: number; | ||
/** | ||
* 高さ。 | ||
*/ | ||
height: number; | ||
/** | ||
* ループ。 | ||
*/ | ||
loop?: boolean; | ||
/** | ||
* width,heightではなく実サイズを用いる指定。 | ||
*/ | ||
useRealSize?: boolean; | ||
export interface DynamicVideoAssetConfigurationBase extends Omit<DynamicAssetConfigurationBase, "type">, Omit<VideoAssetConfigurationBase, UnneededKeysForDynamicAsset> { | ||
} | ||
@@ -75,23 +33,3 @@ /** | ||
*/ | ||
export interface DynamicAudioAssetConfigurationBase extends DynamicAssetConfigurationBase { | ||
/** | ||
* Assetの種類。 | ||
*/ | ||
type: "audio"; | ||
/** | ||
* AudioAssetのsystem指定。 | ||
*/ | ||
systemId: "music" | "sound"; | ||
/** | ||
* 再生時間。 | ||
*/ | ||
duration: number; | ||
/** | ||
* ループ。 | ||
*/ | ||
loop?: boolean; | ||
/** | ||
* ヒント。akashic-engineが最適なパフォーマンスを発揮するための情報。 | ||
*/ | ||
hint?: AudioAssetHint; | ||
export interface DynamicAudioAssetConfigurationBase extends Omit<DynamicAssetConfigurationBase, "type">, Omit<AudioAssetConfigurationBase, UnneededKeysForDynamicAsset> { | ||
} | ||
@@ -101,7 +39,3 @@ /** | ||
*/ | ||
export interface DynamicTextAssetConfigurationBase extends DynamicAssetConfigurationBase { | ||
/** | ||
* Assetの種類。 | ||
*/ | ||
type: "text"; | ||
export interface DynamicTextAssetConfigurationBase extends Omit<DynamicAssetConfigurationBase, "type">, Omit<TextAssetConfigurationBase, UnneededKeysForDynamicAsset> { | ||
} | ||
@@ -111,7 +45,5 @@ /** | ||
*/ | ||
export interface DynamicScriptAssetConfigurationBase extends DynamicAssetConfigurationBase { | ||
/** | ||
* Assetの種類。 | ||
*/ | ||
type: "script"; | ||
export interface DynamicScriptAssetConfigurationBase extends Omit<DynamicAssetConfigurationBase, "type">, Omit<ScriptAssetConfigurationBase, UnneededKeysForDynamicAsset> { | ||
} | ||
declare type UnneededKeysForDynamicAsset = "path" | "virtualPath" | "global"; | ||
export {}; |
@@ -1,7 +0,9 @@ | ||
import { FontFamily, FontWeight, FontWeightString, GlyphFactory, ResourceFactory } from "@akashic/pdi-types"; | ||
import type { FontWeightString, GlyphFactory, ResourceFactory } from "@akashic/pdi-types"; | ||
import { FontFamily, FontWeight } from "@akashic/pdi-types"; | ||
import { BitmapFont } from "./BitmapFont"; | ||
import { Font } from "./Font"; | ||
import { Game } from "./Game"; | ||
import { Glyph } from "./Glyph"; | ||
import { SurfaceAtlasSetHint, SurfaceAtlasSet } from "./SurfaceAtlasSet"; | ||
import type { Game } from "./Game"; | ||
import type { Glyph } from "./Glyph"; | ||
import type { SurfaceAtlasSetHint } from "./SurfaceAtlasSet"; | ||
import { SurfaceAtlasSet } from "./SurfaceAtlasSet"; | ||
/** | ||
@@ -8,0 +10,0 @@ * `DynamicFont` のコンストラクタに渡すことができるパラメータ。 |
@@ -1,4 +0,5 @@ | ||
import { CommonSize, Renderer, Surface } from "@akashic/pdi-types"; | ||
import { Camera } from "../Camera"; | ||
import { E, EParameterObject } from "./E"; | ||
import type { CommonSize, Renderer, Surface } from "@akashic/pdi-types"; | ||
import type { Camera } from "../Camera"; | ||
import type { EParameterObject } from "./E"; | ||
import { E } from "./E"; | ||
/** | ||
@@ -5,0 +6,0 @@ * `CacheableE` のコンストラクタに渡すことができるパラメータ。 |
@@ -1,11 +0,13 @@ | ||
import { CommonArea, CommonOffset, CommonRect, Renderer } from "@akashic/pdi-types"; | ||
import { Trigger } from "@akashic/trigger"; | ||
import { Camera } from "../Camera"; | ||
import type { CommonArea, CommonOffset, CommonRect, Renderer } from "@akashic/pdi-types"; | ||
import type { Trigger } from "@akashic/trigger"; | ||
import type { Camera } from "../Camera"; | ||
import { EntityStateFlags } from "../EntityStateFlags"; | ||
import { MessageEvent, PointDownEventBase, PointEventBase, PointMoveEventBase, PointSourceBase, PointUpEventBase } from "../Event"; | ||
import { Game } from "../Game"; | ||
import { Matrix } from "../Matrix"; | ||
import { Object2D, Object2DParameterObject } from "../Object2D"; | ||
import { Scene } from "../Scene"; | ||
import { ShaderProgram } from "../ShaderProgram"; | ||
import type { MessageEvent, PointSourceBase } from "../Event"; | ||
import { PointDownEventBase, PointEventBase, PointMoveEventBase, PointUpEventBase } from "../Event"; | ||
import type { Game } from "../Game"; | ||
import type { Matrix } from "../Matrix"; | ||
import type { Object2DParameterObject } from "../Object2D"; | ||
import { Object2D } from "../Object2D"; | ||
import type { Scene } from "../Scene"; | ||
import type { ShaderProgram } from "../ShaderProgram"; | ||
/** | ||
@@ -12,0 +14,0 @@ * ポインティングソースによって対象となるエンティティを表すインターフェース。 |
@@ -1,3 +0,4 @@ | ||
import { Renderer } from "@akashic/pdi-types"; | ||
import { E, EParameterObject } from "./E"; | ||
import type { Renderer } from "@akashic/pdi-types"; | ||
import type { EParameterObject } from "./E"; | ||
import { E } from "./E"; | ||
/** | ||
@@ -4,0 +5,0 @@ * `FilledRect` のコンストラクタに渡すことができるパラメータ。 |
@@ -1,5 +0,6 @@ | ||
import { ImageAsset, Surface } from "@akashic/pdi-types"; | ||
import type { ImageAsset, Surface } from "@akashic/pdi-types"; | ||
import { Trigger } from "@akashic/trigger"; | ||
import { Timer } from "../Timer"; | ||
import { Sprite, SpriteParameterObject } from "./Sprite"; | ||
import type { Timer } from "../Timer"; | ||
import type { SpriteParameterObject } from "./Sprite"; | ||
import { Sprite } from "./Sprite"; | ||
/** | ||
@@ -6,0 +7,0 @@ * `FrameSprite` のコンストラクタに渡すことができるパラメータ。 |
@@ -1,6 +0,7 @@ | ||
import { Glyph, Renderer } from "@akashic/pdi-types"; | ||
import { Font } from "../Font"; | ||
import type { Glyph, Renderer } from "@akashic/pdi-types"; | ||
import type { Font } from "../Font"; | ||
import { TextAlign } from "../TextAlign"; | ||
import { TextAlignString } from "../TextAlignString"; | ||
import { CacheableE, CacheableEParameterObject } from "./CacheableE"; | ||
import type { TextAlignString } from "../TextAlignString"; | ||
import type { CacheableEParameterObject } from "./CacheableE"; | ||
import { CacheableE } from "./CacheableE"; | ||
/** | ||
@@ -7,0 +8,0 @@ * `Label` のコンストラクタに渡すことができるパラメータ。 |
@@ -1,6 +0,7 @@ | ||
import { CommonArea, CommonOffset, CommonRect, ImageAsset, Renderer, Surface } from "@akashic/pdi-types"; | ||
import { Camera } from "../Camera"; | ||
import { Matrix } from "../Matrix"; | ||
import { SurfaceEffector } from "../SurfaceEffector"; | ||
import { CacheableE, CacheableEParameterObject } from "./CacheableE"; | ||
import type { CommonArea, CommonOffset, CommonRect, ImageAsset, Renderer, Surface } from "@akashic/pdi-types"; | ||
import type { Camera } from "../Camera"; | ||
import type { Matrix } from "../Matrix"; | ||
import type { SurfaceEffector } from "../SurfaceEffector"; | ||
import type { CacheableEParameterObject } from "./CacheableE"; | ||
import { CacheableE } from "./CacheableE"; | ||
/** | ||
@@ -7,0 +8,0 @@ * `Pane` のコンストラクタに渡すことができるパラメータ。 |
@@ -1,5 +0,6 @@ | ||
import { ImageAsset, Renderer, Surface } from "@akashic/pdi-types"; | ||
import { Camera } from "../Camera"; | ||
import { Matrix } from "../Matrix"; | ||
import { E, EParameterObject } from "./E"; | ||
import type { ImageAsset, Renderer, Surface } from "@akashic/pdi-types"; | ||
import type { Camera } from "../Camera"; | ||
import type { Matrix } from "../Matrix"; | ||
import type { EParameterObject } from "./E"; | ||
import { E } from "./E"; | ||
/** | ||
@@ -6,0 +7,0 @@ * `Sprite` のコンストラクタに渡すことができるパラメータ。 |
@@ -1,5 +0,5 @@ | ||
import { CommonOffset } from "@akashic/pdi-types"; | ||
import { Player } from "./Player"; | ||
import { RandomGenerator } from "./RandomGenerator"; | ||
import { StorageValueStore } from "./Storage"; | ||
import type { CommonOffset } from "@akashic/pdi-types"; | ||
import type { Player } from "./Player"; | ||
import type { RandomGenerator } from "./RandomGenerator"; | ||
import type { StorageValueStore } from "./Storage"; | ||
/** | ||
@@ -6,0 +6,0 @@ * イベントの種別。 |
import * as pl from "@akashic/playlog"; | ||
import { E } from "./entities/E"; | ||
import { Event } from "./Event"; | ||
import { InternalOperationPluginOperation } from "./OperationPluginOperation"; | ||
import { Player } from "./Player"; | ||
import type { E } from "./entities/E"; | ||
import type { Event } from "./Event"; | ||
import type { InternalOperationPluginOperation } from "./OperationPluginOperation"; | ||
import type { Player } from "./Player"; | ||
/** | ||
@@ -7,0 +7,0 @@ * @ignore |
@@ -1,3 +0,3 @@ | ||
import { Event } from "@akashic/playlog"; | ||
import { EventFilterController } from "./EventFilterController"; | ||
import type { Event } from "@akashic/playlog"; | ||
import type { EventFilterController } from "./EventFilterController"; | ||
/** | ||
@@ -4,0 +4,0 @@ * イベントフィルタ。 |
@@ -1,2 +0,2 @@ | ||
import { Event } from "@akashic/playlog"; | ||
import type { Event } from "@akashic/playlog"; | ||
/** | ||
@@ -3,0 +3,0 @@ * イベントフィルタ内で利用可能なコントローラ。 |
@@ -1,2 +0,2 @@ | ||
import { AssertionError, AssetLoadError, TypeMismatchError } from "@akashic/pdi-types"; | ||
import type { AssertionError, AssetLoadError, TypeMismatchError } from "@akashic/pdi-types"; | ||
/** | ||
@@ -3,0 +3,0 @@ * 例外生成ファクトリ。 |
@@ -1,3 +0,3 @@ | ||
import { Glyph } from "@akashic/pdi-types"; | ||
import { TextMetrics } from "./TextMetrics"; | ||
import type { Glyph } from "@akashic/pdi-types"; | ||
import type { TextMetrics } from "./TextMetrics"; | ||
/** | ||
@@ -4,0 +4,0 @@ * フォント。 |
@@ -1,27 +0,27 @@ | ||
import { GameConfiguration } from "@akashic/game-configuration"; | ||
import { Asset, CommonOffset, CommonSize, Renderer, ResourceFactory, ScriptAssetRuntimeValueBase, PlatformPointEvent, OperationPluginViewInfo } from "@akashic/pdi-types"; | ||
import * as pl from "@akashic/playlog"; | ||
import type { GameConfiguration } from "@akashic/game-configuration"; | ||
import type { Asset, CommonOffset, CommonSize, Renderer, ResourceFactory, ScriptAssetRuntimeValueBase, PlatformPointEvent, OperationPluginViewInfo } from "@akashic/pdi-types"; | ||
import type * as pl from "@akashic/playlog"; | ||
import { Trigger } from "@akashic/trigger"; | ||
import { AssetManager } from "./AssetManager"; | ||
import { AudioSystemManager } from "./AudioSystemManager"; | ||
import { Camera } from "./Camera"; | ||
import { E, PointSource, PointDownEvent, PointMoveEvent, PointUpEvent } from "./entities/E"; | ||
import { Event, JoinEvent, LeaveEvent, SeedEvent, PlayerInfoEvent, MessageEvent, OperationEvent } from "./Event"; | ||
import type { Camera } from "./Camera"; | ||
import type { E, PointSource, PointDownEvent, PointMoveEvent, PointUpEvent } from "./entities/E"; | ||
import type { Event, JoinEvent, LeaveEvent, SeedEvent, PlayerInfoEvent, MessageEvent, OperationEvent } from "./Event"; | ||
import { EventConverter } from "./EventConverter"; | ||
import { EventFilter } from "./EventFilter"; | ||
import { GameHandlerSet } from "./GameHandlerSet"; | ||
import { GameMainParameterObject } from "./GameMainParameterObject"; | ||
import type { EventFilter } from "./EventFilter"; | ||
import type { GameHandlerSet } from "./GameHandlerSet"; | ||
import type { GameMainParameterObject } from "./GameMainParameterObject"; | ||
import { LoadingScene } from "./LoadingScene"; | ||
import { LocalTickModeString } from "./LocalTickModeString"; | ||
import type { LocalTickModeString } from "./LocalTickModeString"; | ||
import { ModuleManager } from "./ModuleManager"; | ||
import { OperationPlugin } from "./OperationPlugin"; | ||
import type { OperationPlugin } from "./OperationPlugin"; | ||
import { OperationPluginManager } from "./OperationPluginManager"; | ||
import { InternalOperationPluginOperation } from "./OperationPluginOperation"; | ||
import type { InternalOperationPluginOperation } from "./OperationPluginOperation"; | ||
import { PointEventResolver } from "./PointEventResolver"; | ||
import { RandomGenerator } from "./RandomGenerator"; | ||
import type { RandomGenerator } from "./RandomGenerator"; | ||
import { Scene } from "./Scene"; | ||
import { SnapshotSaveRequest } from "./SnapshotSaveRequest"; | ||
import type { SnapshotSaveRequest } from "./SnapshotSaveRequest"; | ||
import { Storage } from "./Storage"; | ||
import { SurfaceAtlasSet } from "./SurfaceAtlasSet"; | ||
import { TickGenerationModeString } from "./TickGenerationModeString"; | ||
import type { TickGenerationModeString } from "./TickGenerationModeString"; | ||
export interface GameResetParameterObject { | ||
@@ -411,2 +411,14 @@ /** | ||
/** | ||
* デフォルトスキッピングシーン。 | ||
* | ||
* 初期値は `undefined` である。 | ||
* @private | ||
*/ | ||
_defaultSkippingScene: Scene | undefined; | ||
/** | ||
* スキッピングシーン。 | ||
* @private | ||
*/ | ||
_skippingScene: Scene | undefined; | ||
/** | ||
* `this.onSceneChange` と同様に `this.scenes` の変化時にfireされるTrigger。 | ||
@@ -502,3 +514,3 @@ * `this.onSceneChange` との相違点は `this.reset()` 時に removeAll() されないことである。 | ||
* | ||
* focusingcameraがこの値を暗黙的に生成するので、通常ゲーム開発者はこの値を直接指定する必要はない。 | ||
* focusingCameraがこの値を暗黙的に生成するので、通常ゲーム開発者はこの値を直接指定する必要はない。 | ||
* @private | ||
@@ -562,2 +574,15 @@ */ | ||
/** | ||
* スキッピングシーン。 | ||
* ゲームが早送りとなった際に描画される特殊なシーンであり、以下の制限を持つ。 | ||
* | ||
* * サポートするシーンの種別は "full-local" のみ | ||
* * 非グローバルアセットを利用してはならない | ||
* * シーン内で発生した一切のイベントは処理されない | ||
* * 早送りが複数回発生した場合でも、対象のシーンの onLoad は2度目以降発火せずにインスタンスが使い回される | ||
* | ||
* 初期値は `undefined` である。 | ||
*/ | ||
get skippingScene(): Scene | undefined; | ||
set skippingScene(scene: Scene | undefined); | ||
/** | ||
* `Game` のインスタンスを生成する。 | ||
@@ -848,2 +873,6 @@ * | ||
/** | ||
* @ignore | ||
*/ | ||
_handleSkippingSceneReady(scene: Scene): void; | ||
/** | ||
* @private | ||
@@ -850,0 +879,0 @@ */ |
@@ -8,2 +8,3 @@ "use strict"; | ||
var DefaultLoadingScene_1 = require("./DefaultLoadingScene"); | ||
var DefaultSkippingScene_1 = require("./DefaultSkippingScene"); | ||
var EventConverter_1 = require("./EventConverter"); | ||
@@ -62,2 +63,3 @@ var ExceptionFactory_1 = require("./ExceptionFactory"); | ||
this._defaultLoadingScene = undefined; | ||
this._defaultSkippingScene = undefined; | ||
this._eventConverter = undefined; | ||
@@ -169,2 +171,33 @@ this._pointEventResolver = undefined; | ||
}); | ||
Object.defineProperty(Game.prototype, "skippingScene", { | ||
/** | ||
* スキッピングシーン。 | ||
* ゲームが早送りとなった際に描画される特殊なシーンであり、以下の制限を持つ。 | ||
* | ||
* * サポートするシーンの種別は "full-local" のみ | ||
* * 非グローバルアセットを利用してはならない | ||
* * シーン内で発生した一切のイベントは処理されない | ||
* * 早送りが複数回発生した場合でも、対象のシーンの onLoad は2度目以降発火せずにインスタンスが使い回される | ||
* | ||
* 初期値は `undefined` である。 | ||
*/ | ||
get: function () { | ||
return this._skippingScene; | ||
}, | ||
set: function (scene) { | ||
if (scene === this._skippingScene) | ||
return; | ||
if (scene) { | ||
if (scene.local !== "full-local") { | ||
throw ExceptionFactory_1.ExceptionFactory.createAssertionError("Game#skippingScene: only 'full-local' scene is supported."); | ||
} | ||
if (scene._needsLoading()) { | ||
throw ExceptionFactory_1.ExceptionFactory.createAssertionError("Game#skippingScene: must not depend on any assets/storages."); | ||
} | ||
} | ||
this._skippingScene = scene; | ||
}, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
/** | ||
@@ -279,5 +312,14 @@ * シーンスタックへのシーンの追加と、そのシーンへの遷移を要求する。 | ||
Game.prototype.render = function () { | ||
var _a; | ||
var scene; | ||
var skippingScene = (_a = this._skippingScene) !== null && _a !== void 0 ? _a : this._defaultSkippingScene; | ||
if (skippingScene && this.isSkipping) { | ||
scene = skippingScene; | ||
scene.onUpdate.fire(); | ||
} | ||
else { | ||
scene = this.scene(); | ||
} | ||
if (!this._modified) | ||
return; | ||
var scene = this.scene(); | ||
if (!scene) | ||
@@ -629,2 +671,5 @@ return; | ||
} | ||
if (this._skippingScene && !this._skippingScene.destroyed()) { | ||
this._skippingScene.destroy(); | ||
} | ||
if (param) { | ||
@@ -663,2 +708,3 @@ if (param.age !== undefined) | ||
this.loadingScene = undefined; | ||
this._skippingScene = undefined; | ||
this._focusingCamera = undefined; | ||
@@ -690,2 +736,13 @@ this.lastLocalTickMode = null; | ||
} | ||
switch (this._configuration.defaultSkippingScene) { | ||
case "none": | ||
this._defaultSkippingScene = new DefaultSkippingScene_1.DefaultSkippingScene({ game: this, style: "none" }); | ||
break; | ||
case "indicator": | ||
this._defaultSkippingScene = new DefaultSkippingScene_1.DefaultSkippingScene({ game: this, style: "indicator" }); | ||
break; | ||
default: | ||
this._defaultSkippingScene = undefined; | ||
break; | ||
} | ||
}; | ||
@@ -714,2 +771,8 @@ /** | ||
} | ||
if (this._defaultSkippingScene && !this._defaultSkippingScene.destroyed()) { | ||
this._defaultSkippingScene.destroy(); | ||
} | ||
if (this._skippingScene && !this._skippingScene.destroyed()) { | ||
this._skippingScene.destroy(); | ||
} | ||
// NOTE: fps, width, height, external, vars はそのまま保持しておく | ||
@@ -790,2 +853,3 @@ this.db = undefined; | ||
this._focusingCamera = undefined; | ||
this._skippingScene = undefined; | ||
this._configuration = undefined; | ||
@@ -881,2 +945,8 @@ this._postTickTasks = []; | ||
/** | ||
* @ignore | ||
*/ | ||
Game.prototype._handleSkippingSceneReady = function (scene) { | ||
this._pushPostTickTask(scene._fireLoaded, scene); | ||
}; | ||
/** | ||
* @private | ||
@@ -933,3 +1003,11 @@ */ | ||
Game.prototype._handleSkipChange = function (isSkipping) { | ||
var _a; | ||
this.isSkipping = isSkipping; | ||
if (isSkipping) { | ||
var skippingScene = (_a = this._skippingScene) !== null && _a !== void 0 ? _a : this._defaultSkippingScene; | ||
if (skippingScene && !skippingScene._loaded) { | ||
skippingScene._load(); | ||
skippingScene._onReady.addOnce(this._handleSkippingSceneReady, this); | ||
} | ||
} | ||
}; | ||
@@ -974,3 +1052,3 @@ /** | ||
if (!mainFun || typeof mainFun !== "function") | ||
throw ExceptionFactory_1.ExceptionFactory.createAssertionError("Game#_handleLoad: Entry point " + this._main + " not found."); | ||
throw ExceptionFactory_1.ExceptionFactory.createAssertionError("Game#_handleLoad: Entry point ".concat(this._main, " not found.")); | ||
mainFun(this._mainParameter); | ||
@@ -977,0 +1055,0 @@ } |
@@ -1,5 +0,5 @@ | ||
import * as pl from "@akashic/playlog"; | ||
import { EventFilter } from "./EventFilter"; | ||
import { LocalTickModeString } from "./LocalTickModeString"; | ||
import { TickGenerationModeString } from "./TickGenerationModeString"; | ||
import type * as pl from "@akashic/playlog"; | ||
import type { EventFilter } from "./EventFilter"; | ||
import type { LocalTickModeString } from "./LocalTickModeString"; | ||
import type { TickGenerationModeString } from "./TickGenerationModeString"; | ||
export interface SceneMode { | ||
@@ -6,0 +6,0 @@ local: LocalTickModeString; |
@@ -1,3 +0,3 @@ | ||
import * as pdi from "@akashic/pdi-types"; | ||
import { SurfaceAtlas } from "./SurfaceAtlas"; | ||
import type * as pdi from "@akashic/pdi-types"; | ||
import type { SurfaceAtlas } from "./SurfaceAtlas"; | ||
export interface Glyph extends pdi.Glyph { | ||
@@ -4,0 +4,0 @@ /** |
@@ -18,2 +18,3 @@ export * from "@akashic/game-configuration"; | ||
export * from "./AssetAccessor"; | ||
export * from "./AssetHolder"; | ||
export * from "./AssetLoadFailureInfo"; | ||
@@ -28,2 +29,3 @@ export * from "./AssetManager"; | ||
export * from "./DefaultLoadingScene"; | ||
export * from "./DefaultSkippingScene"; | ||
export * from "./DynamicAssetConfiguration"; | ||
@@ -30,0 +32,0 @@ export * from "./DynamicFont"; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -38,2 +42,3 @@ if (k2 === undefined) k2 = k; | ||
__exportStar(require("./AssetAccessor"), exports); | ||
__exportStar(require("./AssetHolder"), exports); | ||
__exportStar(require("./AssetLoadFailureInfo"), exports); | ||
@@ -48,2 +53,3 @@ __exportStar(require("./AssetManager"), exports); | ||
__exportStar(require("./DefaultLoadingScene"), exports); | ||
__exportStar(require("./DefaultSkippingScene"), exports); | ||
__exportStar(require("./DynamicAssetConfiguration"), exports); | ||
@@ -50,0 +56,0 @@ __exportStar(require("./DynamicFont"), exports); |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
@@ -1,3 +0,3 @@ | ||
import { OperationPluginInfo } from "@akashic/game-configuration"; | ||
import { OperationPlugin } from "./OperationPlugin"; | ||
import type { OperationPluginInfo } from "@akashic/game-configuration"; | ||
import type { OperationPlugin } from "./OperationPlugin"; | ||
/** | ||
@@ -4,0 +4,0 @@ * エンジン内部で用いる、操作プラグインの管理情報 |
@@ -1,4 +0,5 @@ | ||
import { Asset } from "@akashic/pdi-types"; | ||
import type { Asset } from "@akashic/pdi-types"; | ||
import { Trigger } from "@akashic/trigger"; | ||
import { Scene, SceneParameterObject } from "./Scene"; | ||
import type { SceneParameterObject } from "./Scene"; | ||
import { Scene } from "./Scene"; | ||
export interface LoadingSceneParameterObject extends SceneParameterObject { | ||
@@ -5,0 +6,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { CommonOffset } from "@akashic/pdi-types"; | ||
import type { CommonOffset } from "@akashic/pdi-types"; | ||
/** | ||
@@ -3,0 +3,0 @@ * 変換行列を表すインターフェース。 |
@@ -1,3 +0,3 @@ | ||
import { Module as PdiModule, ScriptAssetRuntimeValue, ScriptAssetRuntimeValueBase } from "@akashic/pdi-types"; | ||
import { Require } from "./Require"; | ||
import type { Module as PdiModule, ScriptAssetRuntimeValue, ScriptAssetRuntimeValueBase } from "@akashic/pdi-types"; | ||
import type { Require } from "./Require"; | ||
export interface ModuleParameterObject { | ||
@@ -4,0 +4,0 @@ runtimeValueBase: ScriptAssetRuntimeValueBase; |
@@ -1,5 +0,5 @@ | ||
import { Asset, ScriptAssetRuntimeValueBase } from "@akashic/pdi-types"; | ||
import { AssetManager } from "./AssetManager"; | ||
import type { Asset, ScriptAssetRuntimeValueBase } from "@akashic/pdi-types"; | ||
import type { AssetManager } from "./AssetManager"; | ||
import { Module } from "./Module"; | ||
import { RequireCacheable } from "./RequireCacheable"; | ||
import type { RequireCacheable } from "./RequireCacheable"; | ||
/** | ||
@@ -6,0 +6,0 @@ * `Module` を管理するクラス。 |
@@ -1,4 +0,4 @@ | ||
import { CommonRect, Surface } from "@akashic/pdi-types"; | ||
import { Game } from "./Game"; | ||
import { SurfaceEffector } from "./SurfaceEffector"; | ||
import type { CommonRect, Surface } from "@akashic/pdi-types"; | ||
import type { Game } from "./Game"; | ||
import type { SurfaceEffector } from "./SurfaceEffector"; | ||
/** | ||
@@ -5,0 +5,0 @@ * ナインパッチによる描画処理を提供するSurfaceEffector。 |
@@ -1,3 +0,3 @@ | ||
import { CommonArea, CommonOffset, CommonSize, CompositeOperation, CompositeOperationString } from "@akashic/pdi-types"; | ||
import { Matrix } from "./Matrix"; | ||
import type { CommonArea, CommonOffset, CommonSize, CompositeOperation, CompositeOperationString } from "@akashic/pdi-types"; | ||
import type { Matrix } from "./Matrix"; | ||
/** | ||
@@ -4,0 +4,0 @@ * `Object2D` のコンストラクタに渡すことができるパラメータ。 |
@@ -1,3 +0,3 @@ | ||
import { Trigger } from "@akashic/trigger"; | ||
import { OperationPluginOperation } from "./OperationPluginOperation"; | ||
import type { Trigger } from "@akashic/trigger"; | ||
import type { OperationPluginOperation } from "./OperationPluginOperation"; | ||
/** | ||
@@ -4,0 +4,0 @@ * 操作プラグインの実装すべきインターフェース。 |
@@ -1,8 +0,8 @@ | ||
import { OperationPluginViewInfo } from "@akashic/pdi-types"; | ||
import type { OperationPluginViewInfo } from "@akashic/pdi-types"; | ||
import { Trigger } from "@akashic/trigger"; | ||
import { Game } from "./Game"; | ||
import { InternalOperationPluginInfo } from "./InternalOperationPluginInfo"; | ||
import { OperationPlugin } from "./OperationPlugin"; | ||
import { InternalOperationPluginOperation } from "./OperationPluginOperation"; | ||
import { OperationPluginStatic } from "./OperationPluginStatic"; | ||
import type { Game } from "./Game"; | ||
import type { InternalOperationPluginInfo } from "./InternalOperationPluginInfo"; | ||
import type { OperationPlugin } from "./OperationPlugin"; | ||
import type { InternalOperationPluginOperation } from "./OperationPluginOperation"; | ||
import type { OperationPluginStatic } from "./OperationPluginStatic"; | ||
/** | ||
@@ -9,0 +9,0 @@ * 操作プラグインを管理するクラス。 |
@@ -132,6 +132,6 @@ "use strict"; | ||
if (this.plugins[code]) { | ||
throw new Error("Plugin#code conflicted for code: " + code); | ||
throw new Error("Plugin#code conflicted for code: ".concat(code)); | ||
} | ||
if (this._infos[code]) { | ||
throw new Error("this plugin (code: " + code + ") is already defined in game.json"); | ||
throw new Error("this plugin (code: ".concat(code, ") is already defined in game.json")); | ||
} | ||
@@ -138,0 +138,0 @@ var plugin = new pluginClass(this._game, this._viewInfo, option); |
@@ -1,3 +0,3 @@ | ||
import { OperationPluginViewInfo } from "@akashic/pdi-types"; | ||
import { OperationPlugin } from "./OperationPlugin"; | ||
import type { OperationPluginViewInfo } from "@akashic/pdi-types"; | ||
import type { OperationPlugin } from "./OperationPlugin"; | ||
/** | ||
@@ -4,0 +4,0 @@ * Operation Pluginの実装すべきstatic methodについての定義。 |
@@ -1,5 +0,5 @@ | ||
import { CommonOffset, PlatformPointEvent } from "@akashic/pdi-types"; | ||
import type { CommonOffset, PlatformPointEvent } from "@akashic/pdi-types"; | ||
import * as pl from "@akashic/playlog"; | ||
import { Camera } from "./Camera"; | ||
import { PointSource } from "./entities/E"; | ||
import type { Camera } from "./Camera"; | ||
import type { PointSource } from "./entities/E"; | ||
export interface PointSourceResolver { | ||
@@ -6,0 +6,0 @@ findPointSource(point: CommonOffset, camera?: Camera): PointSource | undefined; |
@@ -1,2 +0,2 @@ | ||
import { RequireCacheable } from "./RequireCacheable"; | ||
import type { RequireCacheable } from "./RequireCacheable"; | ||
export declare class RequireCachedValue implements RequireCacheable { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,16 +0,17 @@ | ||
import { Asset, CommonOffset, StorageLoadError } from "@akashic/pdi-types"; | ||
import type { Asset, CommonOffset, StorageLoadError } from "@akashic/pdi-types"; | ||
import { Trigger } from "@akashic/trigger"; | ||
import { AssetAccessor } from "./AssetAccessor"; | ||
import { AssetHolder } from "./AssetHolder"; | ||
import { AssetLoadFailureInfo } from "./AssetLoadFailureInfo"; | ||
import { Camera } from "./Camera"; | ||
import { DynamicAssetConfiguration } from "./DynamicAssetConfiguration"; | ||
import { E, PointDownEvent, PointMoveEvent, PointSource, PointUpEvent } from "./entities/E"; | ||
import { MessageEvent, OperationEvent } from "./Event"; | ||
import { Game } from "./Game"; | ||
import { LocalTickModeString } from "./LocalTickModeString"; | ||
import { StorageLoader, StorageLoaderHandler, StorageReadKey, StorageValueStore, StorageValueStoreSerialization } from "./Storage"; | ||
import { TickGenerationModeString } from "./TickGenerationModeString"; | ||
import { Timer } from "./Timer"; | ||
import { TimerIdentifier, TimerManager } from "./TimerManager"; | ||
import type { AssetLoadFailureInfo } from "./AssetLoadFailureInfo"; | ||
import type { Camera } from "./Camera"; | ||
import type { DynamicAssetConfiguration } from "./DynamicAssetConfiguration"; | ||
import type { E, PointDownEvent, PointMoveEvent, PointSource, PointUpEvent } from "./entities/E"; | ||
import type { MessageEvent, OperationEvent } from "./Event"; | ||
import type { Game } from "./Game"; | ||
import type { LocalTickModeString } from "./LocalTickModeString"; | ||
import type { StorageLoader, StorageLoaderHandler, StorageReadKey, StorageValueStore, StorageValueStoreSerialization } from "./Storage"; | ||
import type { TickGenerationModeString } from "./TickGenerationModeString"; | ||
import type { Timer } from "./Timer"; | ||
import type { TimerIdentifier } from "./TimerManager"; | ||
import { TimerManager } from "./TimerManager"; | ||
export declare type SceneRequestAssetHandler = () => void; | ||
@@ -17,0 +18,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import { ScriptAsset } from "@akashic/pdi-types"; | ||
import { Module } from "./Module"; | ||
import { RequireCacheable } from "./RequireCacheable"; | ||
import type { ScriptAsset } from "@akashic/pdi-types"; | ||
import type { Module } from "./Module"; | ||
import type { RequireCacheable } from "./RequireCacheable"; | ||
/** | ||
@@ -5,0 +5,0 @@ * `ScriptAsset` の実行コンテキスト。 |
@@ -1,2 +0,2 @@ | ||
import { ShaderProgram as PdiShaderProgram, ShaderUniform } from "@akashic/pdi-types"; | ||
import type { ShaderProgram as PdiShaderProgram, ShaderUniform } from "@akashic/pdi-types"; | ||
/** | ||
@@ -3,0 +3,0 @@ * `ShaderProgram` のコンストラクタに渡すことができるパラメータ。 |
@@ -1,5 +0,5 @@ | ||
import { Camera } from "./Camera"; | ||
import { E } from "./entities/E"; | ||
import type { Camera } from "./Camera"; | ||
import type { E } from "./entities/E"; | ||
import { Sprite } from "./entities/Sprite"; | ||
import { Scene } from "./Scene"; | ||
import type { Scene } from "./Scene"; | ||
export declare class SpriteFactory { | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { StorageLoadError } from "@akashic/pdi-types"; | ||
import type { StorageLoadError } from "@akashic/pdi-types"; | ||
/** | ||
@@ -3,0 +3,0 @@ * 操作対象とするストレージのリージョンを表す。 |
@@ -1,2 +0,2 @@ | ||
import * as pdi from "@akashic/pdi-types"; | ||
import type * as pdi from "@akashic/pdi-types"; | ||
import { SurfaceAtlasSlot } from "./SurfaceAtlasSlot"; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { CommonSize, ResourceFactory } from "@akashic/pdi-types"; | ||
import { Glyph } from "./Glyph"; | ||
import type { CommonSize, ResourceFactory } from "@akashic/pdi-types"; | ||
import type { Glyph } from "./Glyph"; | ||
import { SurfaceAtlas } from "./SurfaceAtlas"; | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { Surface } from "@akashic/pdi-types"; | ||
import type { Surface } from "@akashic/pdi-types"; | ||
/** | ||
@@ -3,0 +3,0 @@ * `Surface` に対して様々な表現によって書き込む事が出来ることを表すインターフェース。 |
@@ -1,2 +0,2 @@ | ||
import { CommonRect, ImageAsset, Surface } from "@akashic/pdi-types"; | ||
import type { CommonRect, ImageAsset, Surface } from "@akashic/pdi-types"; | ||
/** | ||
@@ -3,0 +3,0 @@ * Surface に関連するユーティリティ。 |
@@ -1,2 +0,2 @@ | ||
import { Trigger } from "@akashic/trigger"; | ||
import type { Trigger } from "@akashic/trigger"; | ||
import { Timer } from "./Timer"; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,3 @@ | ||
import { CommonArea, CommonOffset, CompositeOperation as CompOp, CompositeOperationString } from "@akashic/pdi-types"; | ||
import type { CommonArea, CommonOffset, CompositeOperationString } from "@akashic/pdi-types"; | ||
import { CompositeOperation as CompOp } from "@akashic/pdi-types"; | ||
/** | ||
@@ -3,0 +4,0 @@ * ユーティリティ。 |
@@ -1,2 +0,2 @@ | ||
import { VideoSystem as PdiVideoSystem } from "@akashic/pdi-types"; | ||
import type { VideoSystem as PdiVideoSystem } from "@akashic/pdi-types"; | ||
/** | ||
@@ -3,0 +3,0 @@ * 将来 VideoPlayerインスタンスの一元管理(ボリューム設定などAudioSystemと似た役割) |
import { RandomGenerator } from "./RandomGenerator"; | ||
import { XorshiftSerialization } from "./Xorshift"; | ||
import type { XorshiftSerialization } from "./Xorshift"; | ||
/** | ||
@@ -4,0 +4,0 @@ * Xorshiftを用いた乱数生成期。 |
{ | ||
"name": "@akashic/akashic-engine", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"description": "The core library of Akashic Engine", | ||
"main": "index.js", | ||
"dependencies": { | ||
"@akashic/game-configuration": "~1.2.0", | ||
"@akashic/game-configuration": "~1.3.0", | ||
"@akashic/pdi-types": "~1.3.0", | ||
@@ -13,25 +13,25 @@ "@akashic/playlog": "~3.1.0", | ||
"devDependencies": { | ||
"@akashic/eslint-config": "1.0.0", | ||
"@akashic/eslint-config": "1.1.0", | ||
"@akashic/pdi-common-impl": "~0.2.0", | ||
"@types/jest": "^27.0.3", | ||
"@typescript-eslint/eslint-plugin": "^5.3.1", | ||
"eslint": "^8.1.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.25.3", | ||
"eslint-plugin-jest": "^25.2.4", | ||
"@types/jest": "^27.4.1", | ||
"@typescript-eslint/eslint-plugin": "^5.15.0", | ||
"eslint": "^8.11.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-jest": "^26.1.1", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"jest": "^27.3.1", | ||
"prettier": "^2.4.1", | ||
"jest": "^27.5.1", | ||
"prettier": "^2.5.1", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.58.3", | ||
"rollup": "^2.70.1", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"textlint": "^12.0.2", | ||
"textlint": "^12.1.1", | ||
"textlint-rule-max-ten": "^4.0.3", | ||
"textlint-rule-no-mix-dearu-desumasu": "^5.0.0", | ||
"textlint-rule-prh": "^5.3.0", | ||
"ts-jest": "^27.0.7", | ||
"typedoc": "^0.16.11", | ||
"typescript": "^4.4.4", | ||
"ts-jest": "^27.1.3", | ||
"typedoc": "^0.22.13", | ||
"typescript": "^4.6.2", | ||
"xorshift": "0.2.0" | ||
@@ -52,3 +52,3 @@ }, | ||
"format:eslint": "eslint -c .eslintrc \"src/**/*.ts\" --fix", | ||
"doc": "typedoc --out doc/html/ --mode file --includeDeclarations --exclude **/lib.es5.d.ts --exclude typings/**/* --exclude **/amflow/**/* --name 'Akashic Engine'" | ||
"doc": "typedoc --out doc/html/ --name \"Akashic Engine\" src/index.ts" | ||
}, | ||
@@ -55,0 +55,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1266209
167
26144
+ Added@akashic/game-configuration@1.3.0(transitive)
- Removed@akashic/game-configuration@1.2.0(transitive)