28 lines
670 B
C#
28 lines
670 B
C#
namespace Application.Domain.Entity;
|
|
|
|
public class RandomModel
|
|
{
|
|
public enum RandomCode
|
|
{
|
|
Weight,//权重模式
|
|
Chance,//概率模式
|
|
}
|
|
|
|
/// <summary>
|
|
/// Weight权重模式 Chance概率模式
|
|
/// </summary>
|
|
public string code { get; set; }
|
|
public string name { get; set; }
|
|
public double empty { get; set; }
|
|
public List<RandomData> data { get; set; }
|
|
}
|
|
|
|
public class RandomData
|
|
{
|
|
public string code { get; set; }
|
|
public string name { get; set; }
|
|
public string par { get; set; }
|
|
public int minCount { get; set; }
|
|
public int maxCount { get; set; }
|
|
public double chance { get; set; }
|
|
} |