C# Class LuaFileUtils

Show file Open project: guyun008/LuaFramework_ngui_mod Class Usage Examples

Public Properties

Property Type Description
beZip bool

Protected Properties

Property Type Description
instance LuaFileUtils,
searchPaths List
zipMap AssetBundle>.Dictionary

Public Methods

Method Description
AddSearchBundle ( string name, AssetBundle bundle ) : void
AddSearchPath ( string path, bool front = false ) : void
Dispose ( ) : void
GetFullPathFileName ( string fileName ) : string
GetOSDir ( ) : string
LuaFileUtils ( ) : UnityEngine
ReadFile ( string fileName ) : byte[]
RemoveSearchPath ( string path ) : void

Private Methods

Method Description
ReadZipFile ( string fileName ) : byte[]

Method Details

AddSearchBundle() public method

public AddSearchBundle ( string name, AssetBundle bundle ) : void
name string
bundle AssetBundle
return void

AddSearchPath() public method

public AddSearchPath ( string path, bool front = false ) : void
path string
front bool
return void

Dispose() public method

public Dispose ( ) : void
return void

GetFullPathFileName() public method

public GetFullPathFileName ( string fileName ) : string
fileName string
return string

GetOSDir() public static method

public static GetOSDir ( ) : string
return string

LuaFileUtils() public method

public LuaFileUtils ( ) : UnityEngine
return UnityEngine

ReadFile() public method

public ReadFile ( string fileName ) : byte[]
fileName string
return byte[]

RemoveSearchPath() public method

public RemoveSearchPath ( string path ) : void
path string
return void

Property Details

beZip public property

public bool beZip
return bool

instance protected static property

protected static LuaFileUtils, instance
return LuaFileUtils,

searchPaths protected property

protected List searchPaths
return List

zipMap protected property

protected Dictionary zipMap
return AssetBundle>.Dictionary