C# Класс AppSettings.SubdirExample2Settings

Auto Generate for Tab File: "Subdir/Example2.bytes" No use of generic and reflection, for better performance, less IL code generating
Наследование: IReloadableSettings
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
OnReload System.Action
TabFilePaths string[]

Открытые методы

Метод Описание
Get ( int primaryKey ) : SubdirExample2Setting

Get class by primary key: SubdirExample2

GetAll ( ) : IEnumerable

foreachable enumerable: SubdirExample2

GetEnumerator ( ) : IEnumerator

GetEnumerator for `MoveNext`: SubdirExample2

GetInstance ( ) : SubdirExample2Settings

Get the singleton

ReloadAll ( ) : void

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

Приватные методы

Метод Описание
SubdirExample2Settings ( ) : 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: SubdirExample2

Описание методов

Get() публичный статический Метод

Get class by primary key: SubdirExample2
public static Get ( int primaryKey ) : SubdirExample2Setting
primaryKey int
Результат SubdirExample2Setting

GetAll() публичный статический Метод

foreachable enumerable: SubdirExample2
public static GetAll ( ) : IEnumerable
Результат IEnumerable

GetEnumerator() публичный статический Метод

GetEnumerator for `MoveNext`: SubdirExample2
public static GetEnumerator ( ) : IEnumerator
Результат IEnumerator

GetInstance() публичный статический Метод

Get the singleton
public static GetInstance ( ) : SubdirExample2Settings
Результат SubdirExample2Settings

ReloadAll() публичный Метод

Do reload the setting file: SubdirExample2, 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[]