mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-10-21 19:59:48 +08:00
Add Drop Editor (WIP)
This commit is contained in:
56
Source/GrasscutterTools/Game/Drop/DropData.cs
Normal file
56
Source/GrasscutterTools/Game/Drop/DropData.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.Game.Drop
|
||||
{
|
||||
public class DropData
|
||||
{
|
||||
/// <summary>
|
||||
/// 物品ID
|
||||
/// </summary>
|
||||
[JsonProperty("itemId")]
|
||||
public int ItemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最小数量
|
||||
/// </summary>
|
||||
[JsonProperty("minCount")]
|
||||
public int MinCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最大数量
|
||||
/// </summary>
|
||||
[JsonProperty("maxCount")]
|
||||
public int MaxCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最小权重,范围0~10000
|
||||
/// </summary>
|
||||
[JsonProperty("minWeight")]
|
||||
public int MinWeight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最大权重,范围0~10000
|
||||
/// </summary>
|
||||
[JsonProperty("maxWeight")]
|
||||
public int MaxWeight { get; set; }
|
||||
|
||||
// 以下属性可用但没有必要
|
||||
|
||||
///// <summary>
|
||||
///// 是否共享?
|
||||
///// </summary>
|
||||
//[JsonProperty("share")]
|
||||
//public bool IsShare { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 是否直接给予
|
||||
///// </summary>
|
||||
//[JsonProperty("give")]
|
||||
//public bool IsGive { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{ItemId} x{MinCount}~x{MaxCount} [{MinWeight}~{MaxWeight}]";
|
||||
}
|
||||
}
|
||||
}
|
21
Source/GrasscutterTools/Game/Drop/DropInfo.cs
Normal file
21
Source/GrasscutterTools/Game/Drop/DropInfo.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.Game.Drop
|
||||
{
|
||||
internal class DropInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 怪物ID
|
||||
/// </summary>
|
||||
[JsonProperty("monsterId")]
|
||||
public int MonsterId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 掉落列表
|
||||
/// </summary>
|
||||
[JsonProperty("dropDataList")]
|
||||
public List<DropData> DropDataList { get; set; } = new List<DropData>();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user