C# 클래스 AppSettings.ExampleSettings

Auto Generate for Tab File: "Example.bytes" No use of generic and reflection, for better performance, less IL code generating
상속: IReloadableSettings
파일 보기 프로젝트 열기: mr-kelly/KEngine 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
OnReload System.Action
TabFilePaths string[]

공개 메소드들

메소드 설명
Get ( string primaryKey ) : ExampleSetting

Get class by primary key: Example

GetAll ( ) : IEnumerable

foreachable enumerable: Example

GetEnumerator ( ) : IEnumerator

GetEnumerator for `MoveNext`: Example

GetInstance ( ) : ExampleSettings

Get the singleton

ReloadAll ( ) : void

Do reload the setting file: Example, no exception when duplicate primary key

비공개 메소드들

메소드 설명
ExampleSettings ( ) : System.Collections

Constructor, just reload(init) When Unity Editor mode, will watch the file modification and auto reload

_ReloadAll ( bool throwWhenDuplicatePrimaryKey ) : void

Do reload the setting file: Example

메소드 상세

Get() 공개 정적인 메소드

Get class by primary key: Example
public static Get ( string primaryKey ) : ExampleSetting
primaryKey string
리턴 ExampleSetting

GetAll() 공개 정적인 메소드

foreachable enumerable: Example
public static GetAll ( ) : IEnumerable
리턴 IEnumerable

GetEnumerator() 공개 정적인 메소드

GetEnumerator for `MoveNext`: Example
public static GetEnumerator ( ) : IEnumerator
리턴 IEnumerator

GetInstance() 공개 정적인 메소드

Get the singleton
public static GetInstance ( ) : ExampleSettings
리턴 ExampleSettings

ReloadAll() 공개 메소드

Do reload the setting file: Example, no exception when duplicate primary key
public ReloadAll ( ) : void
리턴 void

프로퍼티 상세

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

Trigger delegate when reload the Settings
public static System.Action OnReload
리턴 System.Action

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

public static string[] TabFilePaths
리턴 string[]