Skip to content

Commit

Permalink
Revert "Revert "Change AssetType enum type (#161)" (#162)" (#163)
Browse files Browse the repository at this point in the history
This reverts commit 1b731f8.
  • Loading branch information
GuoLei1990 authored Apr 5, 2021
1 parent 1b731f8 commit 58b9e27
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
24 changes: 11 additions & 13 deletions packages/core/src/asset/AssetType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,31 @@ export enum AssetType {
* Plain text.
* @remarks Will not be cached based on url in ResourceManager.
*/
Text = 0,
Text = "text",
/**
* JSON.
* @remarks Will not be cached based on url in ResourceManager.
*/
JSON = 1,
JSON = "json",
/**
* ArrayBuffer.
* @remarks Will not be cached based on url in ResourceManager.
*/
Buffer = 2,
Buffer = "buffer",
/** 2D Texture. */
Texture2D = 3,
Texture2D = "texture2d",
/** Cube Texture. */
TextureCube = 4,
TextureCube = "texture-cube",
/** Material. */
Material = 5,
Material = "material",
/** Mesh. */
Mesh = 6,
Mesh = "mesh",
/** Animation Clip. */
AnimationClip = 7,
AnimationClip = "animation-clip",
/** Prefab.*/
Perfab = 8,
Perfab = "prefab",
/** Compress Texture. */
KTX = 9,
KTX = "ktx",
/** Cube Compress Texture. */
KTXCube = 10
/** @todo Scene. */
// Scene = 9
KTXCube = "ktx-cube"
}
2 changes: 1 addition & 1 deletion packages/core/src/asset/LoadItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type LoadItem = {
/**
* Asset Type.
*/
type?: AssetType;
type?: string;
/**
* Number of retries after failed loading.
*/
Expand Down

0 comments on commit 58b9e27

Please sign in to comment.