引入属性、伤害管线
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user