C# 클래스 KEngine.Modules.SettingModule

Unity SettingModule, with Resources.Load in product, with File.Read in editor
상속: SettingModuleBase
파일 보기 프로젝트 열기: mr-kelly/KEngine 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CustomLoadSetting LoadSettingFuncDelegate
SettingBytesFilter SettingBytesFilterDelegate

공개 메소드들

메소드 설명
DefaultLoadSetting ( string path ) : byte[]

Default load setting strategry, editor load file, runtime resources.load

Get ( string path, bool useCache = true ) : TableFile

Quick method to get TableFile from instance

WatchSetting ( string path, System action ) : void

Watch the setting file, when changed, trigger the delegate

보호된 메소드들

메소드 설명
LoadSetting ( string path ) : string

Unity Resources.Load setting file in Resources folder

비공개 메소드들

메소드 설명
GetFileSystemPath ( string path ) : string
LoadSettingFromFile ( string path ) : byte[]

Load setting in file system using `File` class

LoadSettingFromResources ( string path ) : byte[]
LoadSettingFromStreamingAssets ( string path ) : byte[]

KEngine 3 后,增加同步loadStreamingAssets文件,统一只用StreamingAsset路径

SettingModule ( ) : System

메소드 상세

DefaultLoadSetting() 공개 정적인 메소드

Default load setting strategry, editor load file, runtime resources.load
public static DefaultLoadSetting ( string path ) : byte[]
path string
리턴 byte[]

Get() 공개 정적인 메소드

Quick method to get TableFile from instance
public static Get ( string path, bool useCache = true ) : TableFile
path string
useCache bool
리턴 TableFile

LoadSetting() 보호된 메소드

Unity Resources.Load setting file in Resources folder
protected LoadSetting ( string path ) : string
path string
리턴 string

WatchSetting() 공개 정적인 메소드

Watch the setting file, when changed, trigger the delegate
public static WatchSetting ( string path, System action ) : void
path string
action System
리턴 void

프로퍼티 상세

CustomLoadSetting 공개적으로 정적으로 프로퍼티

Override the default load file strategy
public static LoadSettingFuncDelegate CustomLoadSetting
리턴 LoadSettingFuncDelegate

SettingBytesFilter 공개적으로 정적으로 프로퍼티

Filter the loaded bytes, which settings file may be encrypted, so you can manipulate the bytes
public static SettingBytesFilterDelegate SettingBytesFilter
리턴 SettingBytesFilterDelegate