update: 更新到godot4.4.1,并大量重构代码

This commit is contained in:
ZZY
2025-06-09 18:17:06 +08:00
parent b27abb55a2
commit 3fa39fc71e
39 changed files with 801 additions and 790 deletions

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
public interface IConfigManager {
void SetFilePath(string filePath);
void SetDefault(Dictionary<string, object> defalutConfig);
T GetValue<T>(string key);
void SetValue<T>(string key, [NotNull]T value) {
ArgumentNullException.ThrowIfNull(key);
SetValue(key, (object?)value);
}
void SetValue(string key, [NotNull]object? value);
bool HasKey(string key);
void SaveToFile();
void LoadFromFile();
}