BuffTableRepo.cs 594 B

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