freeblox/packages/engine/src/types/asset.ts

15 lines
270 B
TypeScript

import { Texture } from 'three';
export interface Asset {
name: string;
path?: string;
type: 'Texture' | 'CubeTexture';
texture?: Texture;
data: any;
remote?: boolean;
}
export class AssetInfo {
constructor(public path: string, public name: string) {}
}