You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
956 B

using System.Collections.Generic;
using Entitas;
using UnityEngine;
namespace CoreGame.Render
{
public class TargetSelectCfg
{
public int rangeDataId; // 范围数据
public Vector3 targetDir; // 目标方向
public Vector3 targetPos; // 目标位置
public bool noEntSuccess; // 没有目标是否成功
public float param1; // 参数1
public float param2; // 参数2
}
public enum EffectTargetType
{
None,
Self = 1, // 目标选择自己
NearEntity = 2, // 选择附近的单位
EntityParent = 3, // 选择父实体
CircleAreaAll = 4, // 选择所有圆形范围内的单位
RangeDataEntity = 5, // 选择范围数据内的单位
Max,
}
public abstract class EffectTargetSelectBase
{
public abstract bool DoTargetSelect(List<int> targetList, TargetSelectCfg selectCfg, CombatEntity originEntity);
}
}