Files
5.24BuYu/Assets/MyGame/Scripts/Net/APIResponses/GameConfig_SubClass/GiftConfig.cs
T

56 lines
1.0 KiB
C#
Raw Normal View History

2026-02-03 11:35:19 +08:00
using System;
namespace Assets.MyGame.Scripts.Net.API.GameConfig_SubClass
{
/// <summary>
/// 礼包配置
/// </summary>
[Serializable]
public class GiftConfig
{
/// <summary>
/// 类型 1 金币 2 钻石 3 道具
/// </summary>
public int type;
/// <summary>
/// 是否随机
/// </summary>
public bool isRandom;
/// <summary>
/// 数量
/// </summary>
public int count;
/// <summary>
/// 随机最小数量
/// </summary>
public int minCount;
/// <summary>
/// 随机最大数量
/// </summary>
public int maxCount;
/// <summary>
2026-07-09 16:59:26 +08:00
/// 道具信息(可能为空,此时用 otherId 查道具表)
2026-02-03 11:35:19 +08:00
/// </summary>
public BaseProduct product;
2026-07-09 16:59:26 +08:00
/// <summary>
/// 关联道具ID(当 product 为空时,用此ID在 propConfig 中查找道具详情)
/// </summary>
public string otherId;
2026-02-03 11:35:19 +08:00
}
}