引入属性、伤害管线

This commit is contained in:
2026-09-18 21:43:22 +08:00
parent 92e1ea0d55
commit ba25ec1926
108 changed files with 2920 additions and 720 deletions
@@ -35,7 +35,8 @@ namespace SepCore.CustomComponent
"tbspriteconfig",
"tbuiformconfig",
"tbuisoundconfig",
"tbweaponconfig"
"tbweaponconfig",
"tbstatconfig"
};
private sealed class TableAccessor
@@ -133,6 +134,11 @@ namespace SepCore.CustomComponent
Accessor(tables => id => tables.TbWeaponConfig.GetOrDefault((WeaponType)id),
tables => tables.TbWeaponConfig.DataList)
},
{
typeof(StatConfig),
Accessor(tables => id => tables.TbStatConfig.GetOrDefault((StatType)id),
tables => tables.TbStatConfig.DataList)
},
};
private static TableAccessor Accessor<TValue>(Func<Tables, Func<int, object>> rowGetterFactory,