首次提交
This commit is contained in:
18
Assets/Scripts/Common/Data/ItemInfo.cs
Normal file
18
Assets/Scripts/Common/Data/ItemInfo.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using NBF;
|
||||
using NBF.Utils;
|
||||
|
||||
namespace Fantasy
|
||||
{
|
||||
public partial class ItemInfo
|
||||
{
|
||||
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