|
@@ -245,6 +245,7 @@ declare module ToolCore {
|
|
|
extension: string;
|
|
extension: string;
|
|
|
relativePath: string;
|
|
relativePath: string;
|
|
|
cachePath: string;
|
|
cachePath: string;
|
|
|
|
|
+ resource: Atomic.Resource;
|
|
|
importerType: string;
|
|
importerType: string;
|
|
|
importerTypeName: string;
|
|
importerTypeName: string;
|
|
|
importer: AssetImporter;
|
|
importer: AssetImporter;
|
|
@@ -266,6 +267,7 @@ declare module ToolCore {
|
|
|
// Get the path relative to project
|
|
// Get the path relative to project
|
|
|
getRelativePath(): string;
|
|
getRelativePath(): string;
|
|
|
getCachePath(): string;
|
|
getCachePath(): string;
|
|
|
|
|
+ getResource(): Atomic.Resource;
|
|
|
getImporterType(): string;
|
|
getImporterType(): string;
|
|
|
getImporterTypeName(): string;
|
|
getImporterTypeName(): string;
|
|
|
getImporter(): AssetImporter;
|
|
getImporter(): AssetImporter;
|
|
@@ -309,6 +311,7 @@ declare module ToolCore {
|
|
|
export class AssetImporter extends Atomic.AObject {
|
|
export class AssetImporter extends Atomic.AObject {
|
|
|
|
|
|
|
|
asset: Asset;
|
|
asset: Asset;
|
|
|
|
|
+ resource: Atomic.Resource;
|
|
|
|
|
|
|
|
// Construct.
|
|
// Construct.
|
|
|
constructor(asset: Asset);
|
|
constructor(asset: Asset);
|
|
@@ -316,6 +319,7 @@ declare module ToolCore {
|
|
|
setDefaults(): void;
|
|
setDefaults(): void;
|
|
|
preload(): boolean;
|
|
preload(): boolean;
|
|
|
getAsset(): Asset;
|
|
getAsset(): Asset;
|
|
|
|
|
+ getResource(): Atomic.Resource;
|
|
|
requiresCacheFile(): boolean;
|
|
requiresCacheFile(): boolean;
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -371,6 +375,7 @@ declare module ToolCore {
|
|
|
scale: number;
|
|
scale: number;
|
|
|
importAnimations: boolean;
|
|
importAnimations: boolean;
|
|
|
animationCount: number;
|
|
animationCount: number;
|
|
|
|
|
+ resource: Atomic.Resource;
|
|
|
|
|
|
|
|
// Construct.
|
|
// Construct.
|
|
|
constructor(asset: Asset);
|
|
constructor(asset: Asset);
|
|
@@ -382,6 +387,7 @@ declare module ToolCore {
|
|
|
setImportAnimations(importAnimations: boolean): void;
|
|
setImportAnimations(importAnimations: boolean): void;
|
|
|
getAnimationCount(): number;
|
|
getAnimationCount(): number;
|
|
|
setAnimationCount(count: number): void;
|
|
setAnimationCount(count: number): void;
|
|
|
|
|
+ getResource(): Atomic.Resource;
|
|
|
getAnimationInfo(index: number): AnimationImportInfo;
|
|
getAnimationInfo(index: number): AnimationImportInfo;
|
|
|
|
|
|
|
|
}
|
|
}
|