43 lines
919 B
C#
43 lines
919 B
C#
using ET;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
using Sirenix.OdinInspector;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Cal
|
|
{
|
|
[BsonIgnoreExtraElements]
|
|
public class SelectMultiTarget : SelectTargetBase
|
|
{
|
|
|
|
[LabelText("是否随机数量")]
|
|
public bool isRndom = false;
|
|
|
|
[LabelText("最小目标数量")]
|
|
[ShowIf("isRndom")]
|
|
public SkillParam minCount;
|
|
|
|
[LabelText("最大目标数量")]
|
|
public SkillParam maxCount;
|
|
|
|
[LabelText("队伍类型")]
|
|
public TeamType teamType;
|
|
|
|
[LabelText("排除的类型(可多选)")]
|
|
public TargetFlagType flags;
|
|
|
|
#if UNITY
|
|
internal void CheckData()
|
|
{
|
|
if (!isRndom)
|
|
{
|
|
minCount.values = null;
|
|
minCount.skillSourcetype = SkillSourcetype.None;
|
|
}
|
|
}
|
|
#endif
|
|
#if SERVER
|
|
|
|
#endif
|
|
}
|
|
}
|