초기커밋
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
||||
using ServerBase;
|
||||
|
||||
|
||||
namespace ServerCommon.BusinessLogDomain;
|
||||
|
||||
public class RandomBoxItemUseInfo : ILogInvoker.IInfo
|
||||
{
|
||||
[JsonProperty("UseItemGuid")]
|
||||
public string m_use_item_guid { get; private set; } = string.Empty;
|
||||
[JsonProperty("UseItemId")]
|
||||
public int m_use_item_id { get; private set; } = 0;
|
||||
[JsonProperty("UseItemNum")]
|
||||
public int m_use_item_num { get; private set; } = 0;
|
||||
[JsonProperty("Rewards")]
|
||||
public List<MetaAssets.Reward> m_gacha_reward { get; private set; } = new();
|
||||
|
||||
public RandomBoxItemUseInfo(string itemGuid, int itemId, int num, MetaAssets.GachaMetaData gacha) : base()
|
||||
{
|
||||
m_use_item_guid = itemGuid;
|
||||
m_use_item_id = itemId;
|
||||
m_use_item_num = num;
|
||||
|
||||
m_gacha_reward.Add(gacha.Reward);
|
||||
}
|
||||
|
||||
public RandomBoxItemUseInfo(ILogInvoker parent, RandomBoxItemUseInfo info) : base(parent)
|
||||
{
|
||||
setRandomBoxItemUseInfo(info);
|
||||
}
|
||||
|
||||
private void setRandomBoxItemUseInfo(RandomBoxItemUseInfo info)
|
||||
{
|
||||
m_use_item_guid = info.m_use_item_guid;
|
||||
m_use_item_id = info.m_use_item_id;
|
||||
m_use_item_num = info.m_use_item_num;
|
||||
m_gacha_reward = new();
|
||||
m_gacha_reward.AddRange(info.m_gacha_reward);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user