C# Class Hugula.Loader.CacheManager

显示文件 Open project: tenvick/hugula Class Usage Examples

Public Properties

Property Type Description
Typeof_ABScene System.Type
Typeof_AssetBundle System.Type
Typeof_AudioClip System.Type
Typeof_Bytes System.Type
Typeof_Object System.Type
Typeof_String System.Type
Typeof_Texture2D System.Type

Public Methods

Method Description
AddLock ( int hashkey ) : void

锁定

CheckDependenciesComplete ( CRequest req ) : bool

判断所有依赖项目是否加载完成

ClearAll ( ) : void

清理所有资源

ClearCache ( int assethashcode ) : void

清理缓存释放资源

ClearCache ( string assetBundleName ) : void

清理缓存释放资源

Contains ( int keyhash ) : bool

是否下载过资源

Contains ( string key ) : bool

GetCache ( string assetBundleName ) : CacheData

获取缓存

RemoveAllLock ( ) : void

清理所有缓存

RemoveLock ( int hashkey ) : void

移除锁定

SetRequestDataFromCache ( CRequest req ) : bool

从缓存设置数据

Private Methods

Method Description
AddCache ( CacheData cacheData ) : void

添加缓存

AddSourceCacheDataFromWWW ( WWW www, CRequest req ) : bool

Adds the source cache data from WW.

GetCache ( int assethashcode ) : CacheData

获取缓存

SetAssetLoaded ( int hashkey ) : void

Sets the asset loaded.

Method Details

AddLock() public static method

锁定
public static AddLock ( int hashkey ) : void
hashkey int
return void

CheckDependenciesComplete() public static method

判断所有依赖项目是否加载完成
public static CheckDependenciesComplete ( CRequest req ) : bool
req CRequest
return bool

ClearAll() public static method

清理所有资源
public static ClearAll ( ) : void
return void

ClearCache() public static method

清理缓存释放资源
public static ClearCache ( int assethashcode ) : void
assethashcode int
return void

ClearCache() public static method

清理缓存释放资源
public static ClearCache ( string assetBundleName ) : void
assetBundleName string
return void

Contains() public static method

是否下载过资源
public static Contains ( int keyhash ) : bool
keyhash int
return bool

Contains() public static method

public static Contains ( string key ) : bool
key string
return bool

GetCache() public static method

获取缓存
public static GetCache ( string assetBundleName ) : CacheData
assetBundleName string
return CacheData

RemoveAllLock() public static method

清理所有缓存
public static RemoveAllLock ( ) : void
return void

RemoveLock() public static method

移除锁定
public static RemoveLock ( int hashkey ) : void
hashkey int
return void

SetRequestDataFromCache() public static method

从缓存设置数据
public static SetRequestDataFromCache ( CRequest req ) : bool
req CRequest
return bool

Property Details

Typeof_ABScene public_oe static_oe property

public static Type,System Typeof_ABScene
return System.Type

Typeof_AssetBundle public_oe static_oe property

public static Type,System Typeof_AssetBundle
return System.Type

Typeof_AudioClip public_oe static_oe property

public static Type,System Typeof_AudioClip
return System.Type

Typeof_Bytes public_oe static_oe property

public static Type,System Typeof_Bytes
return System.Type

Typeof_Object public_oe static_oe property

public static Type,System Typeof_Object
return System.Type

Typeof_String public_oe static_oe property

public static Type,System Typeof_String
return System.Type

Typeof_Texture2D public_oe static_oe property

public static Type,System Typeof_Texture2D
return System.Type