SkillTableRepo.cs 604 B

123456789101112131415161718192021
  1. namespace XGame.Database
  2. {
  3. public partial class SkillTableRepo
  4. {
  5. /// <summary>
  6. /// 获取技能的作用对象
  7. /// </summary>
  8. /// <param name="skillId"></param>
  9. /// <returns></returns>
  10. public static ESkillTargetType GetTargetType(long skillId)
  11. {
  12. var table = Get(skillId);
  13. if (table == null)
  14. {
  15. Log.Error($"没有找到技能配置. SkillId:{skillId}");
  16. return ESkillTargetType.None;
  17. }
  18. return (ESkillTargetType)table.TargetType;
  19. }
  20. }
  21. }