- Preparing search index...
- The search index is not available
feng3d
Constructors
constructor
- new ReadRS(fs?): ReadRS
-
Properties
Private _fs
_fs: any
Protected _idMap
Protected _pathMap
Private _rootPath
_rootPath: any
Protected resources
resources: string
Static rs
Accessors
fs
- get fs(): ReadFS
-
root
- get root(): FolderAsset
-
rootPath
- get rootPath(): string
-
Returns string
Methods
addAsset
- addAsset(asset): void
-
Returns void
createAsset
- createAsset<T>(Cls, fileName?, value?, parent?): Promise<FileAsset>
-
Parameters
-
Cls: (new () => T)
-
Optional fileName: string
-
Optional value: gPartial<T>
-
deleteAsset0
- deleteAsset0(asset): void
-
Returns void
deleteAssetById
- deleteAssetById(id): void
-
Returns void
deleteAssetByPath
- deleteAssetByPath(path): void
-
Returns void
deserializeWithAssets
- deserializeWithAssets(object): Promise<any>
-
Returns Promise<any>
getAllAssets
- getAllAssets(): FileAsset[]
-
getAllIds
- getAllIds(): string[]
-
Returns string[]
getAllPaths
- getAllPaths(): string[]
-
Returns string[]
getAssetById
- getAssetById(id): FileAsset
-
getAssetByPath
- getAssetByPath(path): FileAsset
-
getAssetsByType
- getAssetsByType<T>(type): T[]
-
Returns T[]
getAssetsWithObject
- getAssetsWithObject(object, assetids?): string[]
-
Parameters
-
object: any
-
Optional assetids: string[]
Returns string[]
getChildrenAssetByPath
- getChildrenAssetByPath(path): FileAsset[]
-
getChildrenPathsByPath
- getChildrenPathsByPath(p): string[]
-
Returns string[]
getLoadedAssetDatasByType
- getLoadedAssetDatasByType<T>(type): T[]
-
Returns T[]
getValidChildName
- getValidChildName(parent, fileName): string
-
Returns string
init
- init(): Promise<void>
-
Returns Promise<void>
readAsset
- readAsset(id): Promise<FileAsset>
-
readAssetData
- readAssetData(id): Promise<any>
-
Returns Promise<any>
readAssetDatas
- readAssetDatas(assetids): Promise<AssetData[]>
-
Returns Promise<AssetData[]>
可读资源系统