..
This commit is contained in:
@@ -5,6 +5,8 @@ namespace AR
|
||||
{
|
||||
public static class SETTING
|
||||
{
|
||||
public static SystemSetting System;
|
||||
public static CounterSetting Counter;
|
||||
public static CommonSetting Data;
|
||||
public static UserSetting User;
|
||||
public static Boolean isInit { get; private set; } = false;
|
||||
@@ -14,15 +16,18 @@ namespace AR
|
||||
Data.Load();
|
||||
if (User == null) User = new UserSetting();
|
||||
User.Load();
|
||||
|
||||
if (System == null) System = new SystemSetting();
|
||||
System.Load();
|
||||
if (Counter == null) Counter = new CounterSetting();
|
||||
Counter.Load();
|
||||
isInit = true;
|
||||
|
||||
|
||||
}
|
||||
public static void Save()
|
||||
{
|
||||
Data.Save();
|
||||
User.Save();
|
||||
System.Save();
|
||||
Counter.Save();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user