Package org.qiunet.cfg.manager
Enum Class CfgManagers
- All Implemented Interfaces:
Serializable,Comparable<CfgManagers>,Constable
总管 游戏设定加载
- Author:
- qiunet Created on 17/2/9 12:15.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCfgManager(ICfgManager<?, ?> manager) 添加 Managerstatic CfgManagersvoid重新加载voidreloadSetting(List<ICfgManager<?, ?>> gameSettingList) 重新加载 指定cfg Manager 文件变动热更使用static CfgManagersReturns the enum constant of this class with the specified name.static CfgManagers[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getInstance
-
reloadSetting
重新加载 指定cfg Manager 文件变动热更使用- Throws:
Exception
-
reloadSetting
public void reloadSetting()重新加载- Throws:
Exception
-
addCfgManager
添加 Manager- Parameters:
manager-
-