调整部分数据表配置,优化 SpriteCache 功能
This commit is contained in:
@@ -49,7 +49,7 @@ namespace SepCore.CustomComponent
|
||||
{
|
||||
{
|
||||
typeof(EnemyConfig),
|
||||
StringAccessor(tables => key => tables.TbEnemyConfig.GetOrDefault(key),
|
||||
Accessor(tables => key => tables.TbEnemyConfig.GetOrDefault((EnemyType)key),
|
||||
tables => tables.TbEnemyConfig.DataList)
|
||||
},
|
||||
{
|
||||
@@ -124,7 +124,7 @@ namespace SepCore.CustomComponent
|
||||
},
|
||||
{
|
||||
typeof(WeaponConfig),
|
||||
Accessor(tables => id => tables.TbWeaponConfig.GetOrDefault(id),
|
||||
Accessor(tables => id => tables.TbWeaponConfig.GetOrDefault((WeaponType)id),
|
||||
tables => tables.TbWeaponConfig.DataList)
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user