mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
25 lines
645 B
C#
25 lines
645 B
C#
namespace EggLink.DanhengServer.Data.Config.Task;
|
|
|
|
public class DestroyProp : TaskConfigInfo
|
|
{
|
|
public DynamicFloat ID { get; set; } = new();
|
|
public DynamicFloat GroupID { get; set; } = new();
|
|
public List<GroupEntityInfo> DestroyList { get; set; } = [];
|
|
}
|
|
|
|
public class GroupEntityInfo
|
|
{
|
|
public DynamicFloat GroupID { get; set; } = new();
|
|
public DynamicFloat GroupInstanceID { get; set; } = new();
|
|
}
|
|
|
|
public class DynamicFloat
|
|
{
|
|
public bool IsDynamic { get; set; }
|
|
public FixedValueInfo<int> FixedValue { get; set; } = new();
|
|
|
|
public int GetValue()
|
|
{
|
|
return IsDynamic ? 0 : FixedValue.Value;
|
|
}
|
|
} |