Files
Convention-Unity/Convention/[Architecture]/Modules/ConfigManager.cs

18 lines
424 B
C#
Raw Normal View History

2025-11-14 17:13:10 +08:00
using System;
using System.Collections.Generic;
namespace Convention.Experimental.Modules
{
public class ConfigManager : PublicType.GameModule
{
2025-11-20 16:17:10 +08:00
public readonly ProjectConfig Config = new();
2025-11-14 17:13:10 +08:00
public bool IsSavePropertiesWhenShutdown = false;
internal override void Shutdown()
{
if (IsSavePropertiesWhenShutdown)
2025-11-20 16:17:10 +08:00
Config.SaveProperties();
2025-11-14 17:13:10 +08:00
}
}
}