修改为luban

This commit is contained in:
Bob.Song
2026-03-05 15:03:45 +08:00
parent 13e4315a70
commit 36067705f2
122 changed files with 10497 additions and 2216 deletions

View File

@@ -0,0 +1,20 @@
using Newtonsoft.Json.Linq;
namespace NBF;
public static class Configs
{
private static cfg.Tables _tables;
public static cfg.Tables Tables => _tables;
public static void Initialize()
{
_tables = new cfg.Tables(LoadJson);
}
private static JArray LoadJson(string file)
{
var gameConfigText = File.ReadAllText(Path.Combine(AppContext.BaseDirectory, "cfg", $"{file}.Json"));
return JArray.Parse(gameConfigText);
}
}

View File

@@ -5,6 +5,6 @@ namespace NBF.ConfigTable
/// </summary>
public interface IConfigTable
{
public uint Key { get; }
public int Key { get; }
}
}