C# Class AppSettings.AppConfigSettings

Auto Generate for Tab File: "AppConfig+Category.bytes", "AppConfig+Category2.bytes", "AppConfig+TSV.bytes", "AppConfig.bytes" No use of generic and reflection, for better performance, less IL code generating
Inheritance: IReloadableSettings
Show file Open project: mr-kelly/KEngine Class Usage Examples

Public Properties

Property Type Description
OnReload System.Action
TabFilePaths string[]

Public Methods

Method Description
Get ( string primaryKey ) : AppConfigSetting

Get class by primary key: AppConfig

GetAll ( ) : IEnumerable

foreachable enumerable: AppConfig

GetEnumerator ( ) : IEnumerator

GetEnumerator for `MoveNext`: AppConfig

GetInstance ( ) : AppConfigSettings

Get the singleton

ReloadAll ( ) : void

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

Private Methods

Method Description
AppConfigSettings ( ) : 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: AppConfig

Method Details

Get() public static method

Get class by primary key: AppConfig
public static Get ( string primaryKey ) : AppConfigSetting
primaryKey string
return AppConfigSetting

GetAll() public static method

foreachable enumerable: AppConfig
public static GetAll ( ) : IEnumerable
return IEnumerable

GetEnumerator() public static method

GetEnumerator for `MoveNext`: AppConfig
public static GetEnumerator ( ) : IEnumerator
return IEnumerator

GetInstance() public static method

Get the singleton
public static GetInstance ( ) : AppConfigSettings
return AppConfigSettings

ReloadAll() public method

Do reload the setting file: AppConfig, no exception when duplicate primary key
public ReloadAll ( ) : void
return void

Property Details

OnReload public static property

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

TabFilePaths public static property

public static string[] TabFilePaths
return string[]