首次提交
This commit is contained in:
27
Assets/Scripts/Common/Config/GoodsConfig.cs
Normal file
27
Assets/Scripts/Common/Config/GoodsConfig.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Collections.Generic;
|
||||
using NBF;
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public partial class Goods
|
||||
{
|
||||
private List<AwardData> _awards;
|
||||
|
||||
public List<AwardData> Awards
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_awards == null)
|
||||
{
|
||||
_awards = new List<AwardData>();
|
||||
foreach (var item in Items)
|
||||
{
|
||||
_awards.Add(new AwardData(item.ToString()));
|
||||
}
|
||||
}
|
||||
|
||||
return _awards;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Common/Config/GoodsConfig.cs.meta
Normal file
3
Assets/Scripts/Common/Config/GoodsConfig.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f2ff9451a42f4d9e8ebec6b8c8088103
|
||||
timeCreated: 1763900639
|
||||
Reference in New Issue
Block a user