首次提交
This commit is contained in:
17
Assets/Scripts/Common/Data/ShopItemInfo.cs
Normal file
17
Assets/Scripts/Common/Data/ShopItemInfo.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using NBF;
|
||||
using NBF.Utils;
|
||||
|
||||
namespace Fantasy
|
||||
{
|
||||
public partial class ShopItemInfo
|
||||
{
|
||||
private cfg.Item _config;
|
||||
|
||||
public cfg.Item Config
|
||||
{
|
||||
get { return _config ??= Game.Tables.TbItem.Get((int)ConfigId); }
|
||||
}
|
||||
|
||||
public ItemType ItemType => ConfigId.GetItemType();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user